1.userdel [-r] Username: Delete User, user thought data has,/etc/passwd,/etc/shadow,/etc/group,/etc/gshadow,/home/username,/var/spool/ Mail/username, Parameters
1) Delete together with the user's home directory
2.finger [-S] Username: query user-related information, parameters,
1)-S: Lists only the user's account number, full name, terminal and login time, etc.
2)-M: List the same as the following account, rather than using part of the match (including full name)
With no parameters, the user name of the currently logged in host is listed by default
3.CHFN [-foph] [account name]: Modify the finger output information, parameters,
1)-F: followed by the full name
2)-O: Room number in your office
3)-P: Office phone number
4)-H: Home phone number
4.chsh [-ls]: Change shell directory, parameters,
1)-L: List the shell that is available on the system at present, actually is the content of/etc/shells
2)-S: set to modify your shell
5.id [user Name]: Query the user's various ID information, if not followed by the user name, it is to query the current user's various ID information.
6.groupadd [-G Gid][-r] Group name: Add Group, parameters,
1)-G: followed by a specific GID to give directly to a GID
2)-R: Set up system groups, related to/etc/login.defs
7.groupmod [-G gid][-n Group_name] Group name: Modify group-related parameters, parameters,
1)-G: Modify existing GID
2)-N: Modify the existing group name
8.groupdel [groupname]: Delete the specified group before deleting it, you must ensure that no user is using the group as the initial group (that is, the user's GID record of the group's ID)
9.GPASSWD groupname;gpasswd [-A user1,...] [-M User3,...] GROUPNAME;GPASSWD [-RR] GroupName: Set up group admins, parameters
1) If there is no parameter, give GroupName a password (/etc/gshadow)
2)-A: Control of the GroupName by the user behind it (the group's administrator)
3)-M: Add some accounts to this group
4)-R: Remove the password from the GroupName
5)-R: Disable the password for groupname
These are the actions that system administrator root can perform, and the actions that Group administrator can do are:
GPASSWD [-ad] user groupname: Parameters,
6)-A: Add a user to the GroupName group
7)-D: Remove a user from the GroupName group
10.SGID permissions: When a directory has Sgid permissions, the group of files created on behalf of the user under this directory is the same as the group for that directory.
This article is from "Tiger Brother's Blog" blog, please be sure to keep this source http://7613577.blog.51cto.com/7603577/1597543
Linux Account group deletion and other related actions