• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisionf43160f3674e83f04d092fade8799263b5d2679f (tree)
Zeit2012-03-18 12:49:04
Autormatsuand <matsuand@user...>
Commitermatsuand

Log Message

[BLFS] Modified sudo.

Ändern Zusammenfassung

Diff

--- a/BLFS/sudo.sh
+++ b/BLFS/sudo.sh
@@ -8,16 +8,17 @@ TARGETBALL=$TARGET.tar.gz
88 TARGETDIR=$TARGET
99
1010 echo Check Required...
11-./_checkRequired.sh || exit 1
11+./_checkRequired.sh Linux-PAM || exit 1
1212
1313 echo Check Options...
14-. ./_checkOptions.sh Linux-PAM shadow sendmail
14+. ./_checkOptions.sh shadow sendmail
1515
16-if [ ${OPTION_LinuxPAM} -eq "1" ]; then
17- export WITHPAM=""
18-else
19- export WITHPAM="--without-pam "
20-fi
16+#if [ ${OPTION_LinuxPAM} -eq "1" ]; then
17+# export WITHPAM=""
18+#else
19+# export WITHPAM="--without-pam "
20+#fi
21+export WITHPAM=""
2122
2223 if [ ${OPTION_sendmail} -eq "1" ]; then
2324 export WITHSENDMAIL=""
@@ -38,12 +39,9 @@ cd $TARGETDIR
3839
3940 echo \ \ Configuring...
4041 ./configure --prefix=/usr \
41- --libexecdir=/usr/lib \
42- --with-ignore-dot \
42+ --libexecdir=/usr/lib/sudo \
4343 --with-all-insults \
44- --enable-shell-sets-home \
45- --disable-root-sudo \
46- --with-logfac=auth \
44+ --with-env-editor \
4745 $WITHPAM $WITHSENDMAIL \
4846 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1
4947
@@ -55,9 +53,29 @@ echo \ \ Installing...
5553 paco -p $TARGET "make install" \
5654 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1
5755
58-paco -p+ $TARGET "\
59-sed -e 's@/su@/sudo@' -e '/pam_rootok/d' \
60- /etc/pam.d/su > /etc/pam.d/sudo"
56+#paco -p+ $TARGET "\
57+#sed -e 's@/su@/sudo@' -e '/pam_rootok/d' \
58+# /etc/pam.d/su > /etc/pam.d/sudo"
59+
60+cat > /etc/pam.d/sudo << "EOF"
61+# Begin /etc/pam.d/sudo
62+
63+# include the default auth settings
64+auth include system-auth
65+
66+# include the default account settings
67+account include system-account
68+
69+# Set default environment variables for the service user
70+session required pam_env.so
71+
72+# include system session defaults
73+session include system-session
74+
75+# End /etc/pam.d/sudo
76+EOF
77+chmod 644 /etc/pam.d/sudo
78+paco -p+ $TARGET "touch /etc/pam.d/sudo"
6179
6280 echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none
6381