Adding A Group; Password Aging - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Chapter 33. Users and Groups
Option
-d <home-dir>
-e <date>
-f <days>
-g <group-name>
-G <group-list>
-m
-M
-n
-r
-p <password>
-s
-u <uid>
Table 33.1. useradd Command Line Options

33.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 33.2. groupadd Command Line Options

33.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 33.3, "chage Command Line
by an option from
480
Description
Home directory to be used instead of default /home/<username>/
Date for the account to be disabled in the format YYYY-MM-DD
Number of days after the password expires until the account is
disabled. If 0 is specified, the account is disabled immediately after
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 33.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.
Options".

Advertisement

Table of Contents
loading

Table of Contents