/etc/sudoers
Inviato: mar 28 mar 2006, 9:39
Sto cercando di configurare bene il file /etc/sudoers.
Questo è quello che ho attualmente:
non mi chiede la password per nulla mentre io vorrei che NON chiedesse la password SOLO per shutdown e ntpdate mentre per il resto si
dove ho sbagliato?
Questo è quello che ho attualmente:
Codice: Seleziona tutto
# 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
Cmnd_Alias SHUTDOWN=/sbin/halt,/sbin/shutdown
Cmnd_Alias NTPDATE=/usr/sbin/ntpdate ntp1.ien.it
# Defaults specification
# Runas alias specification
amir amirlinux=SHUTDOWN,NTPDATE,NOPASSWD: ALL
# 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
dove ho sbagliato?