Friday, November 30, 2007

How to Make a User a Sudoer

  1. Add user to wheel group:
    $ vim /etc/group
    - wheel:x:10:root,newuser
    
    or simple do this:
    $ gpasswd -a newuser wheel
    
  2. Uncomment this line in sudoers file:
    $ vim /etc/sudoers
    - ## Allows people in group wheel to run all commands
    - %wheel    ALL=(ALL)    ALL
    
    or
    $ visudo
    

No comments:

Post a Comment