Home
Ubuntu
How to create ubuntu sudoer user using command line
How to create ubuntu sudoer user using command line
As linux admin, some day you need to add new user to your linux sistem, most of linux system have no gui, they accessed via terminal, here i share to you how to add new user and grant his privileges to be sudoer using command line in terminal on ubuntu os.
Create user by typing following command : adduser [username] as shown on following figure
[email protected]:~$
[email protected]:~$ sudo adduser maswachid
Adding user `maswachid' ...
Adding new group `maswachid' (1004) ...
Adding new user `maswachid' (1003) with group `maswachid' ...
Creating home directory `/home/maswachid' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for maswachid
Enter the new value, or press ENTER for the default
Full Name []: mas wachid
Room Number []: 1
Work Phone []: 0822
Home Phone []: 0856
Other []: indonesia
Is the information correct? [Y/n] Y
[email protected]:~$
Add the user to sudo group in other the user grant sudoer privileges
Tidak ada komentar :
Posting Komentar