• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision261c58872c1a71f2be2e6ed593e23f08f321a0ff (tree)
Time2021-08-24 17:43:11
Authorroot <root@loca...>
Commiterroot

Log Message

[BLFS] Modify Linux-PAM.

Change Summary

Incremental Difference

--- a/BLFS/Linux-PAM.sh
+++ b/BLFS/Linux-PAM.sh
@@ -44,48 +44,36 @@ Making
4444 make \
4545 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1
4646
47+install -v -m755 -d /etc/pam.d
48+
49+cat > /etc/pam.d/other << "EOF"
50+auth required pam_deny.so
51+account required pam_deny.so
52+password required pam_deny.so
53+session required pam_deny.so
54+EOF
55+
56+rm -fv /etc/pam.d/other
57+
4758 Installing
4859 porg -lp $TARGET -E`pwd` "make install" \
4960 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1
5061
51-chmod -v 4755 /sbin/unix_chkpwd \
52- 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
53-
54-for file in pam pam_misc pamc
55-do
56- porg -lp+ $TARGET "\
57- mv -v /usr/lib/lib${file}.so.* /lib" \
58- 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
59-
60- porg -lp+ $TARGET "\
61- ln -sfv ../../lib/$(readlink /usr/lib/lib${file}.so) /usr/lib/lib${file}.so" \
62- 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
63-done
62+chmod -v 4755 /sbin/unix_chkpwd
6463
6564 install -v -m755 -d /etc/pam.d
6665
67-cat > /etc/pam.d/other << "EOF"
68-# Begin /etc/pam.d/other
69-
70-auth required pam_unix.so nullok
71-account required pam_unix.so
72-session required pam_unix.so
73-password required pam_unix.so nullok
74-
75-# End /etc/pam.d/other
76-EOF
77-porg -lp+ $TARGET "touch /etc/pam.d/other"
78-
7966 install -vdm755 /etc/pam.d
80-
81-cat > /etc/pam.d/system-account << "EOF"
67+cat > /etc/pam.d/system-account << "EOF" &&
8268 # Begin /etc/pam.d/system-account
8369
8470 account required pam_unix.so
8571
8672 # End /etc/pam.d/system-account
8773 EOF
88-porg -lp+ $TARGET "touch /etc/pam.d/system-account"
74+porg -lp+ $TARGET "
75+touch /etc/pam.d/system-account" \
76+ 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
8977
9078 cat > /etc/pam.d/system-auth << "EOF"
9179 # Begin /etc/pam.d/system-auth
@@ -93,8 +81,10 @@ cat > /etc/pam.d/system-auth << "EOF"
9381 auth required pam_unix.so
9482
9583 # End /etc/pam.d/system-auth
96-EOF
97-porg -lp+ $TARGET "touch /etc/pam.d/system-auth"
84+EOF
85+porg -lp+ $TARGET "
86+touch /etc/pam.d/system-auth" \
87+ 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
9888
9989 cat > /etc/pam.d/system-session << "EOF"
10090 # Begin /etc/pam.d/system-session
@@ -103,7 +93,9 @@ session required pam_unix.so
10393
10494 # End /etc/pam.d/system-session
10595 EOF
106-porg -lp+ $TARGET "touch /etc/pam.d/system-session"
96+porg -lp+ $TARGET "
97+touch /etc/pam.d/system-session" \
98+ 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
10799
108100 cat > /etc/pam.d/system-password << "EOF"
109101 # Begin /etc/pam.d/system-password
@@ -114,7 +106,27 @@ password required pam_unix.so sha512 shadow try_first_pass
114106
115107 # End /etc/pam.d/system-password
116108 EOF
117-porg -lp+ $TARGET "touch /etc/pam.d/system-password"
109+porg -lp+ $TARGET "
110+touch /etc/pam.d/system-password" \
111+ 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
112+
113+cat > /etc/pam.d/other << "EOF"
114+# Begin /etc/pam.d/other
115+
116+auth required pam_warn.so
117+auth required pam_deny.so
118+account required pam_warn.so
119+account required pam_deny.so
120+password required pam_warn.so
121+password required pam_deny.so
122+session required pam_warn.so
123+session required pam_deny.so
124+
125+# End /etc/pam.d/other
126+EOF
127+porg -lp+ $TARGET "
128+touch /etc/pam.d/other" \
129+ 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1
118130
119131 TimeEnd
120132