Add user to sudoers list

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

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

find large file

find / -type f -size +100000000c -ls This will list all file located at "/" that...

Installing DBD::mysql from source

wget http://www.cpan.org/modules/by-module/DBD/DBI-1.56.tar.gz tar xvzf DBI-1.56.tar.gz cd...

Hardening Server included

  LSM (Linux Socket Monitoring) installed and configured - Function is to monitor ANY...

Stop Exim

killall exim or Service exim stop or killall -9 exim

Check for possible existing exploits

shfor x in "/dev/shm /tmp /usr/local/apache/proxy /var/spool /var/tmp"; do ls -loAFR $x...

Powered by WHMCompleteSolution