I have edited the file /etc/sudoers in order to allow my self to run some commands with not having the need to access the root account, this is my file
I have added those lines but its not seem to be working, could someone correct me, Thanks.
moderator ALL=/sbin/ifconfig, /sbin/ifconfig eth0 *, /etc/rc.d/rc.inet1 start
moderator localhost=/sbin/shutdown -h now
Code:# 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
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
moderator ALL=/sbin/ifconfig, /sbin/ifconfig eth0 *, /etc/rc.d/rc.inet1 start
moderator localhost=/sbin/shutdown -h now
# 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
