When you first started your Linux installation, you were given the opportunity to create one or more user accounts using the Setup Agent. If you did not create at least one account (not including the root account) you should do so now. You should avoid working in the root account for daily tasks.
There are two ways to create new and additional user accounts: using the graphical User Manger application or from a shell prompt.
Using useradd command you can create a new user or update default new user information.
Using deluser command you can remove a user or group from the system.
There are two ways to create new and additional user accounts: using the graphical User Manger application or from a shell prompt.
To create a user account graphically:
Add a user:
- Go to System Settings >> User Accounts
- To Create a user account click on Unlock icon. (top right corner)
- If you not logged in as root, you will be prompted for your password.
- Then click on (+) icon to create a user account.
- Type appropriate information. then click on add
Delete a user:
- Similarly to delete a User, Select the user and click on (-) icon.
- Choose if you want to keep or delete personal files in home directory, then type root password.
- Done
To create a user account using terminal:
Add a user:Using useradd command you can create a new user or update default new user information.
- Open terminal ( Press Ctrl+Alt+T )
- Type sudo adduser tipu (Note: tipu is my new user name)
Using deluser command you can remove a user or group from the system.
- Just type sudo deluser 'username' press Enter.
- Done
0 Comments