Re: [Dorset] Two Raspberry Pi puzzles

2014-03-31 Thread Andrew

On 31/03/14 21:11, JD wrote:
2.  On my re-installed RPi I added a new user and su-ed to it. Later 
on this user tried to do a bit of adminstration using sudo. Not too 
surprisinfly, I received an error message saying that this user was 
not a sudoer and I would be reported to the Thought Police!


I looked at /etc/sudoers and found that it contains the standard entry:
%sudo   ALL=(ALL:ALL) ALL
and that the new user is in group sudo.

So why couldn't the new user sudo?


At a guess, the new user isn't in the 'sudo' group.

--

Andrew.



--
Next meeting:  Bournemouth, Tuesday, 2014-04-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue


[Dorset] Two Raspberry Pi puzzles

2014-03-31 Thread JD
1.  Some time ago (Aug 13) I asked for advice on how to use ssh between 
the 3 computers attached to my router.  The solution I adopted was the 
hostname.local notation, suggested by Andrew.  That continued to work 
until I had to re-install Raspbian (a cut-down(?) Debian Wheezy).  Now 
it doesn't.  A web search found a reference to Avahi as the source of 
the .local convention.  And indeed my RPi doesn't have avahi running 
whereas the 2 other computers do and .local works between them.


Clearly, I need to install avahi.  But - is that the full answer?

2.  On my re-installed RPi I added a new user and su-ed to it. Later on 
this user tried to do a bit of adminstration using sudo. Not too 
surprisinfly, I received an error message saying that this user was not 
a sudoer and I would be reported to the Thought Police!


I looked at /etc/sudoers and found that it contains the standard entry:
%sudo   ALL=(ALL:ALL) ALL
and that the new user is in group sudo.

So why couldn't the new user sudo?

Regards,
John

--
Next meeting:  Bournemouth, Tuesday, 2014-04-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue