Adding A Group; Password Aging - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Option
-g <group-name>
-G <group-list>
-m
-M
-n
-r
-p <password>
-s
-u <uid>
Table 32.1. useradd Command Line Options

32.2.3. Adding a Group

To add a group to the system, use the command groupadd:
groupadd <group-name>
Command line options for groupadd are detailed in
Option
-g <gid>
-r
-f
Table 32.2. groupadd Command Line Options

32.2.4. Password Aging

For security reasons, it is advisable to require users to change their passwords periodically. This can
be done when adding or editing a user on the Password Info tab of the User Manager.
To configure password expiration for a user from a shell prompt, use the chage command, followed
Table 32.3, "chage Command Line
by an option from
Important
Shadow passwords must be enabled to use the chage command.
Description
the password expires. If -1 is specified, the account is not be disabled
after the password expires.
Group name or group number for the user's default group. The group
must exist prior to being specified here.
List of additional (other than default) group names or group numbers,
separated by commas, of which the user is a member. The groups
must exist prior to being specified here.
Create the home directory if it does not exist.
Do not create the home directory.
Do not create a user private group for the user.
Create a system account with a UID less than 500 and without a home
directory
The password encrypted with crypt
User's login shell, which defaults to /bin/bash
User ID for the user, which must be unique and greater than 499
Table 32.2, "groupadd Command Line
Description
Group ID for the group, which must be unique and greater than 499
Create a system group with a GID less than 500
When used with -g <gid> and <gid> already exists, groupadd will
choose another unique <gid> for the group.
Options", followed by the username of the user.
Adding a Group
Options".
297

Advertisement

Table of Contents
loading

Table of Contents