Professional Documents
Culture Documents
1. groupadd
NAME
SYNOPSIS
DESCRIPTION
The groupadd command creates a new group account using the values
specified on the command line and the default values from the system.
The new group will be entered into the system files as needed. The
options which apply to the groupadd command are
-g gid
The numerical value of the group's ID. This value must be unique,
unless the -o option is used. The value must be non-negative. The
default is to use the smallest ID value greater than 500 and greater than
every other group. Values between 0 and 499 are typically reserved for
system accounts.
-r
This flag instructs groupadd to add a system account. The first available
gid lower than 499 will be automatically selected unless the -g option is
also given on the command line.
This is an option added by Red Hat.
-f
This is the force flag. This will cause groupadd to exit with an error
when the group about to be added already exists on the system. If that
is the case, the group won't be altered (or added again).
This option also modifies the way -g option works. When you request a
gid that it is not unique and you don't specify the -o option too, the
group creation will fall back to the standard behavior (adding a group as
if neither -g or -o options were specified).
This is an option added by Red Hat.
2. groupdel
NAME
SYNOPSIS
groupdel group
DESCRIPTION
The groupdel command modifies the system account files, deleting all
entries that refer to group. The named group must exist.
You must manually check all filesystems to insure that no files remain
with the named group as the file group ID.
3. groups
NAME
groups - print the groups a user is in
SYNOPSIS
groups [OPTION]... [USERNAME]...
DESCRIPTION
--help display this help and exit
--version
output version information and exit
4. chgrp
NAME
SYNOPSIS
DESCRIPTION
-c, --changes
--dereference
affect the referent of each symbolic link, rather than the symbolic link
itself
-h, --no-dereference
--reference=RFILE
-R, --recursive
-v, --verbose
--help
--version
5. newgrp
The newgrp command is used to change the current group ID during a
login session.
NAME
newgrp - log in to a new group
SYNOPSIS
newgrp [-] [group]
DESCRIPTION
The newgrp command is used to change the current group ID during a
login session. If the optional - flag is given, the user´s environment will
be reinitialized as though the user had logged in, otherwise the current
environment, including current working directory,remains unchanged.
6. chown
NAME
SYNOPSIS
DESCRIPTION
OPTIONS
Change the owner and/or group of each FILE to OWNER and/or GROUP.
-c, --changes
--dereference
affect the referent of each symbolic link, rather than the symbolic link
itself
-h, --no-dereference
--from=CURRENT_OWNER:CURRENT_GROUP
change the owner and/or group of each file only if its current owner
and/or group match those specified here. Either may be omitted, in
which case a match is not required for the omitted attribute.
--reference=RFILE
use RFILE's owner and group rather than the specified OWNER:GROUP
values
-R, --recursive
-v, --verbose
--help
--version