Difference between revisions of "Shadow"
From CBLFS
Jump to navigationJump to searchm |
|||
Line 40: | Line 40: | ||
make install && | make install && | ||
− | mv -v /usr/bin/passwd /bin | + | mv -v /usr/bin/passwd /bin |
− | |||
− | |||
− | |||
− | |||
== Multilib == | == Multilib == | ||
Line 62: | Line 58: | ||
make install && | make install && | ||
− | mv -v /usr/bin/passwd /bin | + | mv -v /usr/bin/passwd /bin |
− | |||
− | |||
− | |||
− | |||
=== N32 === | === N32 === | ||
Line 82: | Line 74: | ||
make install && | make install && | ||
− | mv -v /usr/bin/passwd /bin | + | mv -v /usr/bin/passwd /bin |
− | |||
− | |||
− | |||
− | |||
=== 64Bit === | === 64Bit === | ||
Line 100: | Line 88: | ||
make install && | make install && | ||
− | mv -v /usr/bin/passwd /bin | + | mv -v /usr/bin/passwd /bin |
− | |||
− | |||
− | |||
− | |||
== Configuring == | == Configuring == | ||
Line 137: | Line 121: | ||
|-valign="top" | |-valign="top" | ||
! Installed Libraries: | ! Installed Libraries: | ||
− | | | + | | |
|-valign="top" | |-valign="top" | ||
! Installed Directories: | ! Installed Directories: | ||
Line 224: | Line 208: | ||
! vipw | ! vipw | ||
| Edits the /etc/passwd or /etc/shadow files | | Edits the /etc/passwd or /etc/shadow files | ||
− | |||
− | |||
− | |||
|} | |} |
Revision as of 08:26, 5 July 2008
Download Source: | ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-4.1.5.1.tar.bz2 |
---|
Contents
Introduction to Shadow
Project Homepage: Unknown
Dependencies
Optional
Configuration Information
If you have not installed PAM Library, then use this flag instead of --with-libpam in the instructions below.
--without-libpam
If you have not installed Cracklib, then remove this flag from the instructions below.
--with-libcrack
Non-Multilib
Configure and compile the package:
./configure --libdir=/lib -sysconfdir=/etc --enable-shared \ --without-audit --without-selinux --with-libcrack --with-libpam && sed -i 's/groups$(EXEEXT) //' src/Makefile && find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \; && find man -name Makefile -exec sed -i 's/groups.1 //' '{}' \; && make
Install the package:
make install && mv -v /usr/bin/passwd /bin
Multilib
32Bit
Configure and compile the package:
CC="gcc ${BUILD32}" ./configure --libdir=/lib -sysconfdir=/etc --enable-shared \ --without-audit --without-selinux --with-libcrack --with-libpam && sed -i 's/groups$(EXEEXT) //' src/Makefile && find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \; && find man -name Makefile -exec sed -i 's/groups.1 //' '{}' \; && make
Install the package:
make install && mv -v /usr/bin/passwd /bin
N32
Configure and compile the package:
CC="gcc ${BUILDN32}" ./configure --libdir=/lib32 -sysconfdir=/etc --enable-shared \ --without-audit --without-selinux --with-libcrack --with-libpam && sed -i 's/groups$(EXEEXT) //' src/Makefile && find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \; && find man -name Makefile -exec sed -i 's/groups.1 //' '{}' \; && make
Install the package:
make install && mv -v /usr/bin/passwd /bin
64Bit
CC="gcc ${BUILD64}" ./configure --libdir=/lib64 -sysconfdir=/etc --enable-shared \ --without-audit --without-selinux --with-libcrack --with-libpam && sed -i 's/groups$(EXEEXT) //' src/Makefile && find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \; && find man -name Makefile -exec sed -i 's/groups.1 //' '{}' \; && make
Install the package:
make install && mv -v /usr/bin/passwd /bin
Configuring
login.defs
Setup Configuration files:
cp etc/login.defs /etc/login.defs sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \ -e 's@/var/spool/mail@/var/mail@' \ -e 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' /etc/login.defs FUNCTIONS="LASTLOG_ENAB MAIL_CHECK_ENAB PORTTIME_CHECKS_ENAB CONSOLE MOTD_FILE NOLOGINS_FILE PASS_MIN_LEN SU_WHEEL_ONLY MD5_CRYPT_ENAB CONSOLE_GROUPS ENVIRON_FILE ULIMIT ENV_TZ ENV_HZ ENV_SUPATH ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE OBSCURE_CHECKS_ENAB CRACKLIB_DICTPATH PASS_CHANGE_TRIES PASS_ALWAYS" for function in $FUNCTIONS; do sed -i "s/^$function/# &/" /etc/login.defs done
Where to go?
See Configuring for Adding Users
Contents
Installed Programs: | login, su, nologin, faillog, lastlog, chage, chfn, chsh, expiry, gpasswd, newgrp, passwd, chgpasswd, chpasswd, groupadd, groupdel, groupmems, groupmod, grpck, grpconv, grpunconv, logoutd, newusers, pwck, pwconv, pwunconv, useradd, userdel, usermod, vipw |
---|---|
Installed Libraries: | |
Installed Directories: | /etc/pam.d |
Short Descriptions
expiry | Checks and enforces the current password expiration policy |
---|---|
faillog | Is used to examine the log of login failures, to set a maximum number of failures before an account is blocked, or to reset the failure count |
gpasswd | Is used to add and delete members and administrators to groups |
groupadd | Creates a group with the given name |
groupdel | Deletes the group with the given name |
groupmod | Is used to modify the given group's name or GID |
grpck | Verifies the integrity of the group files /etc/group and /etc/gshadow |
grpconv | Creates or updates the shadow group file from the normal group file |
grpunconv | Updates /etc/group from /etc/gshadow and then deletes the latter |
lastlog | Reports the most recent login of all users or of a given user |
login | Is used by the system to let users sign on |
logoutd | Is a daemon used to enforce restrictions on log-on time and ports |
newgrp | Is used to change the current GID during a login session |
newusers | Is used to create or update an entire series of user accounts |
nologin | Displays a message that an account is not available. Designed to be used as the default shell for accounts that have been disabled |
passwd | Is used to change the password for a user or group account |
pwck | Verifies the integrity of the password files /etc/passwd and /etc/shadow |
pwconv | Creates or updates the shadow password file from the normal password file |
pwunconv | Updates /etc/passwd from /etc/shadow and then deletes the latter |
sg | Executes a given command while the user's GID is set to that of the given group |
su | Runs a shell with substitute user and group IDs |
useradd | Creates a new user with the given name, or updates the default new-user information |
userdel | Deletes the given user account |
usermod | Is used to modify the given user's login name, User Identification (UID), shell, initial group, home directory, etc. |
vigr | Edits the /etc/group or /etc/gshadow files |
vipw | Edits the /etc/passwd or /etc/shadow files |