Ubuntu 20.04
Sponsored Link

Initial Settings : Add User Accounts2020/04/24

After installing System, there is only a user you configured during installation except System Accounts and he is an administrative user. If you'd like to add more common user accounts on System, Configure like follows.
[1] For example, Add a [focal] user.
sudo adduser focal

[sudo] password for ubuntu:  # input self password
Adding user `focal' ...
Adding new group `focal' (1001) ...
Adding new user `focal' (1001) with group `focal' ...
Creating home directory `/home/focal' ...
Copying files from `/etc/skel' ...
New password:           # set user password
Retype new password:    # confirm
passwd: password updated successfully
Changing the user information for focal
Enter the new value, or press ENTER for the default
        Full Name []:   # input user info (OK with empty all if you do not need)
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y
[2] If you'd like to give privileges to a new user, Configure like follows.
usermod -aG sudo focal

su - focal

# try to run a command which requires root privilege

[sudo] password for focal:    
# input self password

Ubuntu 20.04 LTS dlp ttyS0

dlp login:
[3] If you'd like to remove user accounts, Configure like follows.
# remove a user [focal] (only removed user account)

ubuntu@dlp:~$ sudo
deluser focal
# remove a user [focal] (removed user account and his home directory)

ubuntu@dlp:~$ sudo
deluser focal --remove-home
Matched Content