sudo

Discussion in 'Server Operation' started by zaqavis, May 11, 2006.

  1. zaqavis

    zaqavis New Member

    I want to permission to another user to create a users.
    I want to configuration on sudo file.

    pls help me.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    First you must install the sudo package, and then you must edit /etc/sudoers.
     
  3. zaqavis

    zaqavis New Member

    I insall sudo package. now

    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command
    #
    # See the sudoers man page for the details on how to
    #

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # Defaults specification

    # User privilege specification
    root ALL=(ALL) ALL

    # Uncomment to allow people in group wheel to run al
    # %wheel ALL=(ALL) ALL

    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: 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

    where i change for given a permission to another user to create new users.

    Regards
    Qavi
    --More--(81%)
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Take a look at
    Code:
    man sudoers
    You must add a line with the username and probably the useradd command.
     
  5. zaqavis

    zaqavis New Member

    can we permit any user other than administrator to access different users home directory. if yes ,,,,, how
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Yes, but not wit sudo. sudo is for programs. You must look at the permissions and ownerships of the respective directories.
     

Share This Page