Sunday, December 12, 2010

Linux operating system for the management of user groups

Each user has a user group, the system can be a user group for all users in a centralized management.

Different Linux system to the requirements of different groups of users, such as Linux users belong to the same name as the user group it, the users group when you create a user-created at the same time. User group management involves a group of users to add, delete, and modify. Group of the add, delete and modify is in fact an update on/etc/group file. Add a new user group to use groupadd command. Its format is as follows: groupadd options users group can use the options are:-gGID specifies the new user group by group ID (GID). -O in General and the-g option at the same time, represents a new user group GID can be system has the same as the GID of the user group. For example: # groupaddgroup1 this command to the system adds a new group group1, new group identification number is in the current existing maximum group identification number on the basis of plus one. # Groupadd-g101group2 this command to the system adds a new group group2, specifying the new group group identification number is 101. If you want to delete an existing user group, use the format command, its groupdel: groupdel user groups such as: # groupdelgroup1 this command from the system removes the Group group1. Modify the properties of the user group to use groupmod command. Its syntax is as follows: groupmod options user group frequently used options are:-gGID for user group to specify a new group identification number. -O and-g options at the same time, a new user group and the system GID can have the same as the GID of the user group. -N new user groups to the user group name to new name for example: # groupmod-g102group2 this command group group2 groups identification number was revised to 102. # Groupmod – g10000-ngroup3group2 this command group group2 identification number changed to 10000, group name was changed to group3. If a user belongs to multiple groups of users, users can switch between user groups to have different user groups. Users can log on using the newgrp command to switch to another user group, the order of parameters is the end user group. For example: $ newgrproot this command sets the current user to switch to root user group, if the root user group is the user's primary group or additional groups. Similar to user account management, the management of the user group or through integrated systems management tools.

No comments:

Post a Comment