Managing User Accounts:: Written by Razib Shahriar Rubence
Managing User Accounts:: Written by Razib Shahriar Rubence
local users information are stored in a simple file /etc/passwd. Students are advised to follow
page 107 and 108 for detail.
# usermod is used to modify user's information. Some important uses of usermod is as follows:
Managing Password:
By default passwords do not expires. To modify password aging for existing users, use the
chage command
-m minimum days between password changes from last change date
-M Maximum days between password changes from last change date
-I Number of days inactive since password expired before locking account
-E Date expire the account on this date (YYYY-MM-DD format)
-W Number of days before a required change to start warnings
-l List of settings
-d Force users to change their password when first loging
LAB Practice:
For the user jack implement the following password aging policy:
1/2
RH135-Day15
# chage -l jack
2/2