Re: sudo Configuration



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



Relevant Pages

  • Possible solution to sudoers file, comments please.
    ... All root privileges. ... And used some of it to make my own sudoers file with visudo. ... to grant me the access that I need or want as a regular user with admin ...
    (comp.os.linux)
  • Possible solution to sudoers file, comments please.
    ... All root privileges. ... And used some of it to make my own sudoers file with visudo. ... to grant me the access that I need or want as a regular user with admin ...
    (comp.os.linux.security)
  • Opening applications as a different user
    ... open an instance of Mozilla as himself, ... Root GUI account is not used in this household, ... # See the sudoers man page for the details on how to write a sudoers file. ...
    (alt.os.linux.suse)
  • Re: Opening applications as a different user
    ... Click Start, Run Command. ... > that only seems to let one run with root privileges? ... > then an instance of Mozilla opens without any issues, ...
    (alt.os.linux.suse)
  • Re: Probleme mit Sudo
    ... # 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. ...
    (de.comp.os.unix.linux.misc)