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. |
|
| [1] | For example, Add a [resolute] user. |
ubuntu@localhost:~$ [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] yubuntu@localhost:~$ |
| [2] | If you'd like to give privileges to a new user, Configure like follows. |
|
# 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] (removed user account and his home directory) ubuntu@localhost:~$ sudo deluser resolute --remove-home
|
| Sponsored Link |
|
|