Only 1 line, Add a new Linux user and grant sudo

I use Ubuntu and it works. red colored words can be run in shell $ command

green is the variable you can change as you place

  1. as root or a sudoer
  2. command $ useradd -m -G sudo
  3. change user password $ passwd test -m -G sudo
  4. delete user (dangerous) $ userdel -f test

 

Leave a Reply

Your email address will not be published.

Notice: Undefined index: cookies in /var/www/html/wp-content/plugins/live-composer-page-builder/modules/tp-comments-form/module.php on line 1638