ISPConfig 2.x - First Steps (Creating Web Sites, Email Addresses, Etc.)visudo?

Discussion in 'HOWTO-Related Questions' started by Leow, Oct 9, 2009.

  1. Leow

    Leow New Member

    http://www.howtoforge.com/ispconfig-2.x-first-steps-p2

    I found that after typing visudo I'm brought to this line of texts:

    Code:
    # /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
    
    # Host alias specification
    
    # User alias specification
    
    # Cmnd alias specification
    
    # User privilege specification
    root    ALL=(ALL) ALL
    
    # Uncomment to allow members of group sudo to not need a password
    # (Note that later entries override this, so you might need to move
    # it further down)
    # %sudo ALL=NOPASSWD: ALL
    
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    
    
    How to get to this?

    Code:
    admispconfig ALL=(root) NOPASSWD:/usr/bin/du
    
    
    and this

    Code:
    $go_info["server"]["sudo_du_enabled"] = 1
    
    The rest of the bottom part of command is a mystery..Can someone pls clarify?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Code:
    admispconfig ALL=(root) NOPASSWD:/usr/bin/du
    goes after the
    Code:
    root    ALL=(ALL) ALL
    line:
    Code:
    root    ALL=(ALL) ALL
    admispconfig ALL=(root) NOPASSWD:/usr/bin/du

    Code:
    $go_info["server"]["sudo_du_enabled"] = 1;
    must be set in /home/admispconfig/ispconfig/lib/config.inc.php.
     

Share This Page