Add user to sudoers list Print

  • 26

sudoers list is the user list that allowed to execute specify command in ssh

To add 1 user to sudoers list

  1.  
    1. login as root
    2. nano /etc/sudoers or visudo
    3. add a line without quote "username ALL=(ALL) ALL
      • (replace username to the actual user name)

To add all user in wheel group to sudoers list

  1.  
    1. login as root
    2. nano /etc/sudoers or visudo
    3. uncomment "%wheel ALL=(ALL) ALL" or add this line is it not exist

 


Was this answer helpful?

« Back