Ubuntu user account creation, root privilege assignment tips
After you login as a user in Ubuntu machine, you can go to the root account by typing user@myhost:~# sudo -s It will ask for the password of the current user and once you finish typing in the password, you are in the root user account. To create a new user "king" in Ubuntu user@myhost:~#useradd king To set password for the account in Ubuntu user@myhost:~#passwd king Another easy way to add user in Ubuntu is to give the command user@myhost:~# adduser king ... and there will be series of instructions that will get executed enabling you to set the user account details. To make the user "king" have admin privileges in Ubuntu user@myhost:~# sudo adduser king admin Another way to create user account is user@myhost:~# sudo useradd -d /home/king -m king To go to the root account, type the command user@myhost:~# sudo su root and the command prompt will change to root@myhost:/home/user~# To delete user account, type the command user@myhost:~# sudo delete king (user account should have root privileges) When user account is created, a folder is created in the name of the user under /home/user/ and the files from /etc/skel directory get copied to the user home directory. You can modify the files in /etc/skel directory as these content would get copied when the user account is created.