maneesh@maneesh:~$ sudo adduser myuser
[sudo] password for maneesh:
Adding user `myuser' ...
Adding new group `myuser' (1001) ...
Adding new user `myuser' (1001) with group `myuser' ...
Creating home directory `/home/myuser' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for myuser
Enter the new value, or press ENTER for the default
Full Name []: Manish Kumar
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
maneesh@maneesh:~$
Adding in the terminal
maneesh@maneesh:~$ sudo login myuser
Password:
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.8.0-44-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
232 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable
Your Hardware Enablement Stack (HWE) is supported until April 2025.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
myuser@maneesh:~$ pwd
/home/myuser
Adding user to sudo user
maneesh@maneesh:~$ sudo adduser myuser sudo
[sudo] password for maneesh:
Adding user `myuser' to group `sudo' ...
Adding user myuser to group sudo
Done.
Comments
Post a Comment