Linux User group and user management User group management groupadd add a user group groupadd [-ggid [-o] [-r] [-f] group-g where gid is the ID number of the specified new user group, unless the-o parameter is used together, the value must be unique-o to identify the new user group gid...
Linux User group and user management User group management groupadd add a user group groupadd [-g gid [-o] [-r] [-f] group-g where gid is the ID of the specified new user group no, unless the-o parameter is used together, the value must be unique. the gid of the new user group can be the same as the gid value of the original user group in the system: groupadd groupname groupadd-g 789 groupname groupdel delete user group instance: groupdel groupname www.2cto.com groupmod modify user group instance: groupmod-g 1000 groupname groupmod-g 1000-n newgroupname groupname where-n renames the original user group to the user's management useradd add user account operations include creating a user name for it, user Group, Main Directory, and login shell resources. Adduser [-u uid] [-g group] [-G other_group] [-d home] [-s shell]-u specify user userID-g to specify the user group to which the user belongs- d. directly create the root directory in an existing directory.-s defines shell-G to specify the additional group instance to which the user belongs: useradd-d/home/username useradd-s/bin/bash-d/home/username-g groupname-G root username add a user in/etc/passwd record, if other information is specified, it is also updated in the/etc/group and/etc/shadow files. Userdel delete user account instance: userdel username userdel-r username-r along with the home directory delete www.2cto.com usermod modify user account operation items basically similar to useradd instance: usermod-l newusername username-related configuration file/etc/paswd user account configuration file/etc/shadow user password file/etc/group User group configuration file/etc/gshadow user group password file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.