you can vi /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 # User alias specification User_Alias ADMINS=zhou,redhat User_Alias INTER=hp,ibm Run_Alias MAIN=root # Cmnd alias specification Cmnd_Alias FDISK=/sbin/fdisk Cmnd_Alias FD=/usr/sbin/useradd Cmnd_Alias ISK=/sbin/shutdown Cmnd_Alias IP=/sbin/ifconfig # Defaults specification # User privilege specification root ALL=(ALL) ALL ADMINS server10 = (MAIN) ALL INTER server10 = (MAIN) FD,IP,/usr/bin/passwd # 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 ---------------------------------------------------------- login : zhou $ sudo /sbin/fdisk -l passwd : zhou OK -------------------------------------------------------- # sudo -l // list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list