Add & Delete Users on CentOS, Debian, Ubuntu & Windows

Add and Delete Users on CentOS, Debian, Ubuntu & Windows

CentOS, Debian, Ubuntu

1. Add New User

Use the command useradd for adding users in CentOS, Debian, Ubuntu.

# useradd lily

Set a password for user “lily” to active it. Use the following command to set new password.

# passwd lily

Note: Default location of home directory of user lily will be /home/lily

2. Delete User from System

Use the following command to delete

# userdel lily

To remove including the home directory use the following command

# userdel -r lily

Windows

1. Open Start Menu and click on “Administrative Tools”.

windows admin tools

2. Open Computer Management

computer management windows

3. Click on Local Users and Groups

Local Users and Groups windoows

4. Then you will see a page showing folders “Users” and “Groups”.

users and groups windows

5. Right click on Users and select new user

adding new user

6.Type the appropriate information in the dialog box and click Close

user info

7. Double click on the Users menu. Then you will see list of users.

Users List

8. To delete a user right click on the user’s name and select delete.

dele a user

Rohith Krishnan

Rohith SK is an MSC computer science graduate living in Cochin, Kerala. As a technology enthusiast, he is always on the lookout for the latest trends and developments in the field, with a particular interest in cloud computing and DevOps updates. Apart from his passion for technology, Rohith SK is an avid reader and enjoys spending his free time exploring different genres of literature. He believes that reading is one of the best ways to expand one's knowledge and understanding of the world. With his expertise in computer science and a passion for technology, Rohith SK regularly contributes articles and blog posts on the latest trends and updates in the industry. His articles offer insights and valuable perspectives on the various aspects of cloud computing and DevOps, and are widely read and appreciated by readers all over the world. As an experienced technology writer and researcher, Rohith SK's articles are well-researched, informative, and easy to understand, making them accessible to readers of all levels of technical knowledge. Whether you're a beginner looking to learn more about the latest trends in technology, or an experienced professional seeking insights and updates, Rohith's articles are sure to provide valuable information and insights.

Leave a Reply