Somik's Home

Server admins cheat codes

Menu
  • Bash
  • PHP
  • Arduino/ESP
  • About
    • eBook Reader
    • Codebin
    • User Management
    • Online Ruler
    • ShortURL Generator (Newer)
    • Video Downloader
    • ShortURL Generator (Older)
    • File Sharing
    • WhoIs Search
Menu

Ubuntu Add Sudo User

Posted on 2020-09-012020-09-01 by somik

Here’s the easiest way to add a user to sudo group.

First create the user you want:

sudo adduser somik
Adding user 'somik' ...
Adding new group 'somik' (1000) ...
Adding new user 'somik' (1000) with group 'somik' ...
Creating home directory '/home/somik' ...
Copying files from '/etc/skel' ...
New password:
 **PASSWORD**
Retype new password:
 **PASSWORD**
passwd: password updated successfully
Changing the user information for somik
Enter the new value, or press ENTER for the default
        Full Name []:
 **NAME**
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] **Y**

Then add the user to sudo group:

sudo usermod -aG sudo somik

That’s it. Now login as the user.

January 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Sep    

Archives

  • September 2020
  • August 2020
  • July 2020
  • May 2020
  • March 2020
  • November 2019
  • October 2019

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2021 Somik's Home | Powered by Minimalist Blog WordPress Theme