To remove a group from the system, simply execute
rmgroup
with the group's name as the argument:# rmgroup atctest
|
The
According to the AIX man page:
rmgroup
command does not allow you to remove the group until you have moved all users that have the group as their primary group to another group.According to the AIX man page:
Purpose
The rmgroup command removes a group specified by the Name parameter. This command deletes all the group attributes as well. To remove a group, the group name must already exist as a string of 8 bytes or less. Users who are group members are not removed from the system.
If the group is the primary group for any user, you cannot remove it unless you redefine the user's primary group with the chuser command. The chuser command alters the /etc/passwd file. Only the root user or a user with GroupAdmin authorization can remove an administrative group or a group with administrative users as members.
You can use the Web-based System Manager Users application (wsm users fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit rmgroup fast path to run this command.
Access Control:
This command should grant execute (x) access only to the root user and members of the security group. This command should be installed as a program in the trusted computing base (TCB). The command should be owned by the root user with the setuid (SUID) bit set.
This command should grant execute (x) access only to the root user and members of the security group. This command should be installed as a program in the trusted computing base (TCB). The command should be owned by the root user with the setuid (SUID) bit set.
Mode | File |
/etc/passwd | |
/etc/group | |
/etc/security/group |
Event | Information |
group |
Contains the rmgroup command. | |
Contains the basic attributes of groups. | |
Contains the extended attributes of groups. |
No comments:
Post a Comment