Quote:
Originally Posted by deibertine
I am trying to enable my local user to have same priv. as the root login.
I have added this in the sudoers file:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
jameslee ALL=(ALL) NOPASSWD:ALL
andrewbyson ALL=(ALL) NOPASSWD:ALL
I wanted that both james and andrew to have the ability to run scripts without entering or being promoted by a password.
So far the script above didnt do the trick for me.
Anyone has any advise that you could provide to possibly resolve this issue?
I'd appreciate it!
Cheers!
DB
|
How did you edit the file? Chances are that (if you didn't
use visudo, and the editor in use isn't vi) the file is
messed up, and hence doesn't get pulled at all.
Cheers,
Tink