problema con sudo
Inviato: lun 28 feb 2005, 12:03
ciao a tutti,
<BR>seguendo i vari post ho creato questo file sudoers:
<BR>
<BR># sudoers file.
<BR>#
<BR># This file MUST be edited with the ´visudo´ command as root.
<BR>#
<BR># See the sudoers man page for the details on how to write a sudoersfile.
<BR>#
<BR>
<BR># Host alias specification
<BR>
<BR># User alias specification
<BR>User_Alias ALIAS=utente1,utente2
<BR>
<BR># Cmnd alias specification
<BR>Cmnd_Alias COMANDI=/sbin/halt,/sbin/shutdown,/bin/rm,/bin/cat
<BR>
<BR># Defaults specification
<BR>
<BR># Runas alias specification
<BR>
<BR># User privilege specification
<BR>root ALL=(ALL) ALL
<BR>
<BR># Uncomment to allow people in group wheel to run all commands
<BR># %wheel ALL=(ALL) ALL
<BR>
<BR># Same thing without a password
<BR># %wheel ALL=(ALL) NOPASSWD: ALL
<BR>
<BR># Samples
<BR># %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
<BR># %users localhost=/sbin/shutdown -h now
<BR>
<BR>ALIAS ALL=NOPASSWORD: COMANDI
<BR>
<BR>
<BR>rm e cat funzionano ma non reboot e halt
<BR>
<BR>cosa sbaglio?
<BR>
<BR>
<BR>ringrazio anticipatamenteù
<br>
<BR>seguendo i vari post ho creato questo file sudoers:
<BR>
<BR># sudoers file.
<BR>#
<BR># This file MUST be edited with the ´visudo´ command as root.
<BR>#
<BR># See the sudoers man page for the details on how to write a sudoersfile.
<BR>#
<BR>
<BR># Host alias specification
<BR>
<BR># User alias specification
<BR>User_Alias ALIAS=utente1,utente2
<BR>
<BR># Cmnd alias specification
<BR>Cmnd_Alias COMANDI=/sbin/halt,/sbin/shutdown,/bin/rm,/bin/cat
<BR>
<BR># Defaults specification
<BR>
<BR># Runas alias specification
<BR>
<BR># User privilege specification
<BR>root ALL=(ALL) ALL
<BR>
<BR># Uncomment to allow people in group wheel to run all commands
<BR># %wheel ALL=(ALL) ALL
<BR>
<BR># Same thing without a password
<BR># %wheel ALL=(ALL) NOPASSWD: ALL
<BR>
<BR># Samples
<BR># %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
<BR># %users localhost=/sbin/shutdown -h now
<BR>
<BR>ALIAS ALL=NOPASSWORD: COMANDI
<BR>
<BR>
<BR>rm e cat funzionano ma non reboot e halt
<BR>
<BR>cosa sbaglio?
<BR>
<BR>
<BR>ringrazio anticipatamenteù