sudoers
Hello,
Excused for my English
I have this problem
I want un user for reboot
I have used sudores
this is my file /etc/sudoers
# 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
Host_Alias WORKSTATION =192.168.0.0/255.255.255.0
# User alias specification
User_Alias ADMINS = snetoport
User_Alias OPERATORS = snetoport,mino
# Cmnd alias specification
#Cmnd_Alias APACHEEYE = /usr/local/apache2/bin/apachectl start
Cmnd_Alias SHUTDOWN = /usr/sbin/shutdown, /usr/bin/halt, /usr/bin/reboot
# 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
ADMINS ALL = NOPASSWD: ALL
OPERATORS WORKSTAION = SHUTDOWN
then
[root@localhost root]# su snetoport
then
[snetoport@localhost root]$ /usr/bin/reboot
reboot: must be superuser.
help help
Thank
|