Estimated build time: 0.88 SBU Estimated required disk space: 7 MB |
Before you install this package, you may want to have a look at the Shadow hint. It discusses how you can make your system more secure regarding passwords, such as how to enable the more secure MD5 passwords and how to get the most out of this Shadow package. The Shadow hint can be found at http://hints.linuxfromscratch.org/hints/shadowpasswd_plus.txt.
Install the Shadow Password Suite by running the following commands:
./configure --prefix=/usr \ --libdir=/usr/lib --enable-shared && make && make install && cp etc/{limits,login.access} /etc && sed 's%/var/spool/mail%/var/mail%' \ etc/login.defs.linux > /etc/login.defs && ln -s vipw /usr/sbin/vigr && rm /bin/vipw && mv /bin/sg /usr/bin && mv /usr/lib/lib{shadow,misc}.so.0* /lib && ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so && ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so |
Sh-utils and Shadow Password Suite each install a unique groups program. If you wish, you may remove the groups program installed by the Shadow Password Suite by running the following command:
rm /bin/groups |
cp limits login.access /etc: These files were not installed during the installation of the package, so we copy them manually because those files are used to configure authentication details on the system.
sed "s%/var/spool/mail%/var/mail%" login.defs.linux > /etc/login.defs: /var/spool/mail is the old location of the user mailboxes. The location that is used nowadays is /var/mail.
ln -s vipw vigr: According to the manpage of vipw, vigr should be a symlink to it. Because the shadow installation procedure doesn't create these symlinks, we create them manually.
Last checked against version 4.0.3.
chage, chfn, chpasswd, chsh, dpasswd, expiry, faillog, gpasswd, groupadd, groupdel, groupmod, groups, grpck, grpconv, grpunconv, lastlog, login, logoutd, mkpasswd, newgrp, newusers, passwd, pwck, pwconv, pwunconv, sg (link to newgrp), useradd, userdel, usermod, vigr (link to vipw) and vipw
chage changes the number of days between password changes and the date of the last password change.
chfn changes a user's full name and other information (office room number, office phone number, and home phone number).
chpasswd reads a file of user name and password pairs from standard input and uses this information to update a group of existing users.
chsh changes the user login shell.
dpasswd adds, deletes and updates dial-up passwords for user login shells.
expiry checks and enforces a password expiration policy.
faillog formats the contents of the failure log, /var/log/faillog, and maintains failure counts and limits.
gpasswd is used to administer the /etc/group file.
The groupadd command creates a new group account using the values specified on the command line and the default values from the system.
The groupdel command modifies the system account files, deleting all entries that refer to group.
The groupmod command modifies the system account files to reflect the changes that are specified on the command line.
groups prints the groups which a user is in.
grpck verifies the integrity of the system authentication information.
grpunconv converts to shadow group files from normal group files.
grpunconv converts from shadow group files to normal group files.
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.
login is used to establish a new session with the system.
logoutd enforces the login time and port restrictions specified in /etc/porttime.
mkpasswd reads a file in the format given by the flags and converts it to the corresponding database file format.
newgrp is used to change the current group ID during a login session.
newusers reads a file of user name and clear text password pairs and uses this information to update a group of existing users or to create new users.
passwd changes passwords for user and group accounts.
pwck verifies the integrity of the password files.
pwconv converts the normal password file to a shadowed password file.
pwunconv converts a shadowed password file to a normal password file.
sg sets the user's GID to that of the given group, or executes a given command as member of the given group.
useradd creates a new user or updates default new user information.
userdel modifies the system account files, deleting all entries that refer to a specified login name.
usermod modifies the system account files to reflect the changes that are specified on the command line.
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.
libmisc.[a,so], libshadow.[a,so]
No description is currently available.
libshadow provides common functionality for the shadow programs.
Last checked against version 20001016.
Autoconf: autoconf, autoheader
Automake: aclocal, automake
Bash: sh
Binutils: ar, as, ld, nm, ranlib
Diffutils: cmp
Fileutils: chmod, cp, install, ln, ls, mkdir, mv, rm, rmdir
Gettext: msgfmt, xgettext
Gcc: cc1, collect2, cpp0, gcc
Glibc: ldconfig
Grep: egrep, grep
M4: m4
Make: make
Gawk: gawk
Net-tools: hostname
Sed: sed
Sh-utils: basename, echo, expr, sleep, uname
Texinfo: makeinfo
Textutils: cat, sort, tr, uniq