pug
03-18-2002, 08:05 PM
More help with sudo please! I am trying to give one user (pug) access to run anything without the need for a password, this is my sudoers file at the moment
# 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
# %pug ALL=(ALL) ALL
# Same thing without a password
%pug ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
put I still get a prompt for the root password to do anything??? Have also tried adding the line
pug ALL=(ALL) ALL NOPASSWD: ALL
below the root one but neither work for me? is there anything you need to do to active the sudoers file once it is edited?
Thanks in advance
# 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
# %pug ALL=(ALL) ALL
# Same thing without a password
%pug ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
put I still get a prompt for the root password to do anything??? Have also tried adding the line
pug ALL=(ALL) ALL NOPASSWD: ALL
below the root one but neither work for me? is there anything you need to do to active the sudoers file once it is edited?
Thanks in advance