Zum Inhalt springen

visudo Konfigurationsbeispiel

    Kommandozeileneingabe: sudo visudo

    # /etc/sudoers
    #
    # This file MUST be edited with the 'visudo' command $
    #
    # See the man page for details on how to write a sudo$
    # Host alias specification

    # User alias specification
    User_Alias USERS = aaron

    # Cmnd alias specification
    Cmnd_Alias SHUTDOWN = /sbin/shutdown
    Cmnd_Alias REBOOT = /sbin/reboot
    Cmnd_Alias DISCONNECT = /usr/sbin/vpnc-disconnect
    Cmnd_Alias VPNC = /usr/sbin/vpnc

    # Defaults
    Defaults !lecture,tty_tickets,!fqdn

    # User privilege specification
    root ALL=(ALL) ALL
    %admin ALL=(ALL) ALL
    USERS ALL=NOPASSWD:SHUTDOWN
    USERS ALL=NOPASSWD:REBOOT
    USERS ALL=NOPASSWD:DISCONNECT
    USERS ALL=NOPASSWD:VPNC

    # Members of the admin group may gain root privileges
    # %admin ALL=(ALL) ALL