Ubuntu 26.04

Initial Settings : Add User Accounts2026/04/24

 

After installing Ubuntu 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 [resolute] user.
ubuntu@localhost:~$
sudo adduser resolute

[sudo] password for ubuntu:  # input your password
New password:           # set user password
Retype new password:    # confirm
passwd: password updated successfully
Changing the user information for resolute
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
ubuntu@localhost:~$
[2] If you'd like to give privileges to a new user, Configure like follows.
ubuntu@localhost:~$
sudo
usermod -aG sudo resolute

ubuntu@localhost:~$
su - resolute

Password:
# try to run a command which requires root privilege

resolute@localhost:~$
sudo ls -la /root

[sudo] password for resolute:    
# input self password

total 20
drwx------  3 root root 4096 Apr 20 18:08 .
drwxr-xr-x 20 root root 4096 Apr 24 04:14 ..
-rw-r--r--  1 root root 3106 Apr 20 08:46 .bashrc
-rw-r--r--  1 root root  132 Apr 20 08:46 .profile
drwx------  2 root root 4096 Apr 24 04:15 .ssh
[3] If you'd like to remove user accounts, Configure like follows.
# remove a user [resolute] (only removed user account)

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

ubuntu@localhost:~$
sudo deluser resolute --remove-home
Matched Content