mirror of
https://gitlab.com/CinnamonSlackBuilds/csb.git
synced 2024-12-25 21:59:21 +01:00
pam: Add pam.d and rebuilt to get cracklib.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
bf124aa74e
commit
0ea2fbc986
7 changed files with 48 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
|||
SRCNAM=Linux-PAM
|
||||
PRGNAM=pam
|
||||
VERSION=${VERSION:-1.3.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_csb}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -108,6 +108,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|||
cp -a AUTHORS COPYING* Copyright NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/index.html
|
||||
|
||||
mkdir -p $PKG/etc
|
||||
cp -rf $CWD/pam.d $PKG/etc/
|
||||
|
||||
# fix some missing symlinks from old pam for compatibility
|
||||
cd $PKG/usr/lib${LIBDIRSUFFIX}/security
|
||||
ln -s pam_unix.so pam_unix_acct.so
|
||||
|
|
8
pam/pam.d/other
Normal file
8
pam/pam.d/other
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Begin /etc/pam.d/other
|
||||
|
||||
auth required pam_unix.so nullok
|
||||
account required pam_unix.so
|
||||
session required pam_unix.so
|
||||
password required pam_unix.so nullok
|
||||
|
||||
# End /etc/pam.d/other
|
5
pam/pam.d/system-account
Normal file
5
pam/pam.d/system-account
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Begin /etc/pam.d/system-account
|
||||
|
||||
account required pam_unix.so
|
||||
|
||||
# End /etc/pam.d/system-account
|
5
pam/pam.d/system-auth
Normal file
5
pam/pam.d/system-auth
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Begin /etc/pam.d/system-auth
|
||||
|
||||
auth required pam_unix.so
|
||||
|
||||
# End /etc/pam.d/system-auth
|
7
pam/pam.d/system-login
Normal file
7
pam/pam.d/system-login
Normal file
|
@ -0,0 +1,7 @@
|
|||
#%PAM-1.0
|
||||
|
||||
auth required pam_unix.so
|
||||
auth requisite pam_nologin.so
|
||||
account required pam_unix.so
|
||||
password required pam_unix.so
|
||||
session required pam_unix.so
|
13
pam/pam.d/system-password
Normal file
13
pam/pam.d/system-password
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Begin /etc/pam.d/system-password
|
||||
|
||||
# check new passwords for strength (man pam_cracklib)
|
||||
#password required pam_cracklib.so type=Linux retry=3 difok=5 \
|
||||
# difignore=23 minlen=9 dcredit=1 \
|
||||
# ucredit=1 lcredit=1 ocredit=1 \
|
||||
# dictpath=/usr/share/cracklib/cracklib-large
|
||||
# use sha512 hash for encryption, use shadow, and use the
|
||||
# authentication token (chosen password) set by pam_cracklib
|
||||
# above (or any previous modules)
|
||||
password required pam_unix.so sha512 shadow use_authtok
|
||||
|
||||
# End /etc/pam.d/system-password
|
5
pam/pam.d/system-session
Normal file
5
pam/pam.d/system-session
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Begin /etc/pam.d/system-session
|
||||
|
||||
session required pam_unix.so
|
||||
|
||||
# End /etc/pam.d/system-session
|
Loading…
Reference in a new issue