View Single Post
  #2 (permalink)  
Old 21-Dec-2008, 11:10
ab@novell.com
Guest
 
Posts: n/a
Default Re: yast ask for password

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simply putting your user in the /etc/sudoers file doesn't mean you won't
get prompted for a password. In order to avoid a password prompt you
also must tell sudo (in the same sudoers file) that you don't want to be
prompted for a password. There is an example (commented out) in the
default /etc/sudoers file to let this work for the 'wheel' group members:

<quote source="/etc/sudoers" os="SLED 10 SP2 x86_64">
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
</quote>

Notice that it says everybody in the wheel group can run anything
anywhere and they can do it with no password prompt. Personally, as
seldom as you should be needing to use sudo in day-to-day stuff, I don't
think this option is necessary. You can also tell sudo to prompt for
your own user's password instead of the 'root' user's password which I
do recommend so casual passers-by don't suddenly start running sudo
nuking your system, and so you have a second to consider if the command
you are running is really necessary and setup properly with 'root'
privileges.

Good luck.





zilli daniel wrote:
> I tried put my user in the sudores file to avoid yast to ask for
> password every time i open it.. but no luck. I am using 11.1 with gnome.
>
>
> any tip ?
> best
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJTnhq3s42bA80+9kRAp26AJ95QxPbTsRujT39n8x5Kn ULsA726wCaA9VG
nXJHHQhbTSPR+9q+xjnW7QE=
=Shjm
-----END PGP SIGNATURE-----
Reply With Quote