
grpck | 197
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
--service servicename
Add the group to a special service category. Normally, this is
“files,” but it may also be “ldap.”
--usage
Display a very short list of acceptable options for the
command.
-v, --version
Print the version number, then quit.
groupdel
groupdel group
System administration command. Remove group from system
account files. You may still need to find and change permissions on
files that belong to the removed group.
groupmod
groupmod [options] group
System administration command. Modify group information for
group.
Options
-g gid
Change the numerical value of the group ID. Any files that
have the old gid must be changed manually. The new gid must
be unique, unless the -o option is used.
-n name
Change the group name to name.
-o Override. Accept a nonunique gid.
groups
groups [options] [users]
Show the groups that each user belongs to (default user is the
owner of the current group). Groups are listed in /etc/passwd and
/etc/group.
Options
--help
Print help message.
--version
Print version information.
grpck
grpck [option] [files]
System administration command. Remove corrupt or duplicate
entries in the /etc/group and /etc/gshadow files. Generate warnings
for other errors found. grpck will prompt for a “yes” or “no” before
deleting entries. If the user replies “no,” the