How to create users and manage group users in Linux, the main task is to create a legal user account, set and manage user passwords, modify user account attributes, and delete obsolete user accounts when necessary. 1) Add a new user in Linux. Only the root user can create a new user. The following command creates a new user with the login user1. Www.2cto.com # useradduser1. However, this user cannot log on yet, because the initial password has not been set for it, and users without a password cannot log on to the system. By default, a user home directory with the same user name will be created in the/home directory. In Linux, when a user is added, a new group is created. The Group has the same name as the user, and the user is a member of the group. If you want a new user to belong to an existing group, you can use the following command: # useradd-gusergroup1user1 so that the user is a member of the usergroup1 group. And if you want to make it belong to another group of usergroup2, you should also use the: # useradd-Gusergroup2user1 to complete this operation, you should also set an initial password for it using the passwd command. 2) to delete a user, you only need to use a simple command "userdel user name. However, it is best to delete the files that remain on the system. You can use "userdel-r username" to achieve this purpose. 3) to add a group, we can create a user group based on our own needs: www.2cto.com groupadd <Group Name> 4) to delete a group. Sometimes we need to delete a group, its command is groupdel. This article is from the red union Linux Portal