From 723b8bd999b9287d2de26dae05e2a956ac03cb3c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 28 Nov 2004 18:23:13 +0000 Subject: [PATCH] Updated login.defs --- ChangeLog | 4 ++++ unix/Makefile | 13 ++++++++----- unix/login.defs.in | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b2d8fcc..38b6cd7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -62,6 +62,10 @@ v0.71.0 27-Oct-2004 are protected. In file areas, free downloads is now default for new areas. + mblogin: + The file ~/etc/login.defs now has default the issue file + enabled so that it also is displayed for incoming telnet users. + lang: Changed width of prompt 261. Added prompt 28. diff --git a/unix/Makefile b/unix/Makefile index 77a5a8fa..24093101 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -44,12 +44,15 @@ install: all @if [ "`id -un`" != "root" ] ; then \ echo; echo " Must be root to install!"; echo; exit 3; \ fi - ${INSTALL} -c -s -o ${ROWNER} -g ${RGROUP} -m 6711 mbuseradd ${BINDIR} - ${INSTALL} -c -s -o ${ROWNER} -g ${RGROUP} -m 6711 mbpasswd ${BINDIR} - ${INSTALL} -c -s -o ${ROWNER} -g ${RGROUP} -m 0755 mblogin ${BINDIR} + ${INSTALL} -c -s -o ${ROWNER} -g ${RGROUP} -m 6711 mbuseradd ${BINDIR} + ${INSTALL} -c -s -o ${ROWNER} -g ${RGROUP} -m 6711 mbpasswd ${BINDIR} + ${INSTALL} -c -s -o ${ROWNER} -g ${RGROUP} -m 0755 mblogin ${BINDIR} @if [ ! -f ${ETCDIR}/login.defs ] ; then \ - ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 login.defs ${ETCDIR} ; \ - echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 login.defs ${ETCDIR}" ; \ + ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 login.defs ${ETCDIR} ; \ + echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 login.defs ${ETCDIR}" ; \ + else \ + ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 login.defs ${ETCDIR}/login.defs.new ; \ + echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 login.defs ${ETCDIR}/login.defs.new" ; \ fi filelist: Makefile diff --git a/unix/login.defs.in b/unix/login.defs.in index 95cc95ce..950c5101 100644 --- a/unix/login.defs.in +++ b/unix/login.defs.in @@ -56,7 +56,7 @@ LASTLOG_ENAB yes # If defined, this file will be output before each login prompt. # Should not be needed, mgetty and getty will do this already. # -#ISSUE_FILE @prefix@/etc/issue +ISSUE_FILE @prefix@/etc/issue # # If defined, name of file whose presence which will inhibit non-root