6.47. Installing Shadowpwd

6.47.1. Installation of Shadow Password Suite

Install the Shadow Password Suite by running the following commands:


./configure --prefix=/usr &&
make &&
make install &&
cd etc &&
cp limits login.access \
   login.defs.linux shells suauth /etc &&
mv /etc/login.defs.linux /etc/login.defs

6.47.2. Command explanations

cp limits login.access and others: These files were not installed during the installation of the package so we copy them manually as those files are used to configure authentication details on your system.

6.47.3. Contents

The Shadow Password Suite contains the chage, chfn, chsh, expiry, faillog, gpasswd, lastlog, login, newgrp, passwd, sg, su, chpasswd, dpasswd, groupadd, groupdel, groupmod, grpck, grpconv, grpunconv, logoutd, mkpasswd, newusers, pwck, pwconv, pwunconv, useradd, userdel, usermod and vipw programs.

6.47.4. Description

6.47.4.1. chage

chage changes the number of days between password changes and the date of the last password change.

6.47.4.2. chfn

chfn changes user fullname, office number, office extension, and home phone number information for a user's account.

6.47.4.3. chsh

chsh changes the user login shell.

6.47.4.4. expiry

It's currently unknown what this program is for.

6.47.4.5. faillog

faillog formats the contents of the failure log,/var/log/faillog, and maintains failure counts and limits.

6.47.4.6. gpasswd

gpasswd is used to administer the /etc/group file

6.47.4.7. lastlog

lastlog formats and prints the contents of the last login log, /var/log/lastlog. The login-name, port, and last login time will be printed.

6.47.4.8. login

login is used to establish a new session with the system.

6.47.4.9. newgrp

newgrp is used to change the current group ID during a login session.

6.47.4.10. passwd

passwd changes passwords for user and group accounts.

6.47.4.11. sg

sg executes command as a different group ID.

6.47.4.12. su

Change the effective user id and group id to that of a user. This replaces the su programs that's installed from the Shellutils package.

6.47.4.13. chpasswd

chpasswd reads a file of user name and password pairs from standard input and uses this information to update a group of existing users.

6.47.4.14. dpasswd

dpasswd adds, deletes, and updates dialup passwords for user login shells.

6.47.4.15. groupadd

The groupadd command creates a new group account using the values specified on the command line and the default values from the system.

6.47.4.16. groupdel

The groupdel command modifies the system account files, deleting all entries that refer to group.

6.47.4.17. groupmod

The groupmod command modifies the system account files to reflect the changes that are specified on the command line.

6.47.4.18. grpck

grpck verifies the integrity of the system authentication information.

6.47.4.19. grpconv

grpunconv converts to shadow group files from normal group files.

6.47.4.20. grpunconv

grpunconv converts from shadow group files to normal group files.

6.47.4.21. logoutd

logoutd enforces the login time and port restrictions specified in /etc/porttime.

6.47.4.22. mkpasswd

mkpasswd reads a file in the format given by the flags and converts it to the corresponding database file format.

6.47.4.23. newusers

newusers reads a file of user name and cleartext password pairs and uses this information to update a group of existing users or to create new users.

6.47.4.24. pwck

pwck verifies the integrity of the system authentication information.

6.47.4.25. pwconv

pwconv converts to shadow passwd files from normal passwd files.

6.47.4.26. pwunconv

pwunconv converts from shadow passwd files to normal files.

6.47.4.27. useradd

useradd creates a new user or update default new user information.

6.47.4.28. userdel

userdel modifies the system account files, deleting all entries that refer to a specified login name.

6.47.4.29. usermod

usermod modifies the system account files to reflect the changes that are specified on the command line.

6.47.4.30. vipw and vigr

vipw and vigr will edit the files /etc/passwd and /etc/group, respectively. With the -s flag, they will edit the shadow versions of those files, /etc/shadow and /etc/gshadow, respectively.