Debian sudo



  • Ist das unten aufgeführte Beispiel richtig, wenn man sudo so wie bei Ubuntu haben möchte?

    # /etc/sudoers
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the man page for details on how to write a sudoers file.
    #
    
    Defaults        env_reset,      targetpw,       timestamp_timeout = 0
    
    # Host alias specification
    
    # User alias specification
    User_Alias FU_USER = NormalUser
    User_Alias FU_ADMIN = NormalUser
    
    # Cmnd alias specification
    
    # User privilege specification
    root    ALL=(ALL) ALL
    NormalUser ALL=(ALL) ALL
    
    # Allow members of group sudo to execute any command
    # (Note that later entries override this, so you might need to move
    # it further down)
    %sudo ALL=(ALL) ALL
    #
    #includedir /etc/sudoers.d
    

    /etc/sudoers habe ich bei Ubuntu nicht vorgefunden.



  • Unsicher schrieb:

    %sudo ALL=(ALL) ALL

    Ja, das ist das Kernstück.

    /etc/sudoers habe ich bei Ubuntu nicht vorgefunden.

    Sollte normalerweise aber da sein, wenn du nicht das Paket sudo gepurged hast oä.

    Bearbeiten am besten aber via "sudo visudo", nicht einfach mit dem Editor /etc/sudoers bearbeiten.


Anmelden zum Antworten