login.defs optionen wieder aktualisiert. Fehler in sed aufruf (fehlende option -e) korrigiert
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@4769 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
5617a6af8c
commit
314e99af51
@ -141,10 +141,13 @@ postmk() {
|
|||||||
cp etc/{limits,login.access} $TMPROOT/etc
|
cp etc/{limits,login.access} $TMPROOT/etc
|
||||||
sed -i -e "s%/var/spool/mail%/var/mail%" \
|
sed -i -e "s%/var/spool/mail%/var/mail%" \
|
||||||
-e "s%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%" $TMPROOT/etc/login.defs
|
-e "s%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%" $TMPROOT/etc/login.defs
|
||||||
FUNCTIONS=" CONSOLE MD5_CRYPT_ENAB CONSOLE_GROUPS ULIMIT ENV_TZ \
|
FUNCTIONS="LASTLOG_ENAB MAIL_CHECK_ENAB PORTTIME_CHECKS_ENAB CONSOLE MOTD_FILE
|
||||||
ENV_SUPATH ENV_PATH QMAIL_DIR MAIL_DIR MAIL_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
|
for function in $FUNCTIONS; do
|
||||||
sed -i "s/^$function/# &/" /etc/login.defs
|
sed -i -e "s/^$function/# &/" /etc/login.defs
|
||||||
done
|
done
|
||||||
touch $TMPROOT/var/run/utmp $TMPROOT/var/log/{btmp,lastlog,wtmp}
|
touch $TMPROOT/var/run/utmp $TMPROOT/var/log/{btmp,lastlog,wtmp}
|
||||||
mv -v $TMPROOT/usr/bin/passwd $TMPROOT/bin
|
mv -v $TMPROOT/usr/bin/passwd $TMPROOT/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user