Re: sudo Configuration
- From: "redhat.zhou" <redhat.zhou@xxxxxxxxx>
- Date: Tue, 18 Apr 2006 08:58:29 +0800
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?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- RE: sudo Configuration
- From: Poluri, Ramachandra Rao
- RE: sudo Configuration
- Prev by Date: ACL's on the mounted resource
- Next by Date: Re: Fixing disk partitions in preparation for upgrade
- Previous by thread: RE: sudo Configuration
- Next by thread: SElinux boot error with new kernel and RHAS V4 U3
- Index(es):
Relevant Pages
|