Adding local user to sudoers file
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
# %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!
I think you're missing a space there:
use visudo, and the editor in use isn't vi) the file is
messed up, and hence doesn't get pulled at all.
It turned out to be a sshd issue where generating a new key did it for us.
ssh-keygen -t rsa
Thanks to all who posted!
|All times are GMT -5. The time now is 09:51 PM.|