On Wed, 2011-11-30 at 10:49 -0600, Mike Chambers wrote:
On Wed, 2011-11-30 at 13:38 +0300, Hiisi wrote:
> Hi, list!
> I'm trying to set up passwordless sudo for myself. It's a shiny brand
> new fresh-installed F16. During first boot I had been asked to create
> a new user and put him to administrative group. I answered yes and
> hence my user is able to run commands using sudo. However in
> /etc/sudoers there's not a mention of my user. I've added the
> following string to it:
> hiisi ALL=(ALL) NOPASSWD: ALL
On initial installs when this is setup, your userID is not added to the
sudoers file itself. The *wheel* group is what is allowed/setup in
sudoers, and your userid is added to the *wheel* group in the /etc/group
file, such as below..
wheel:x:10:your-username-here
If you wanted to do passwordless, then comment out the line below..
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
And uncomment the line below here..
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
In other words, it doesn't add the username/ID itself to the sudoers
file, it goes through the *wheel* group and you add/drop users from
there on need to use basis.
Thhat is not copletely true. Using visudo and adding
the line:
hilsi ALL=(root) NOPASSWD ALL
should work.
--
=======================================================================
I'd rather have a free bottle in front of me than a prefrontal lobotomy.
-- Fred Allen [Also attributed to S. Clay Wilson. Ed.]
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam(a)sbcglobal.net