Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/root Only display the 'use su' message in the non 'su -'...



details:   https://anonhg.NetBSD.org/src/rev/35d597dad614
branches:  trunk
changeset: 482580:35d597dad614
user:      abs <abs%NetBSD.org@localhost>
date:      Tue Feb 15 19:29:54 2000 +0000

description:
Only display the 'use su' message in the non 'su -' case.
Update the 'use su' message (text from Miles Nordin).
If the terminal type is !unknown, do not prompt for it.

diffstat:

 etc/root/dot.login |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 69e5b0d751b3 -r 35d597dad614 etc/root/dot.login
--- a/etc/root/dot.login        Tue Feb 15 18:55:55 2000 +0000
+++ b/etc/root/dot.login        Tue Feb 15 19:29:54 2000 +0000
@@ -1,4 +1,12 @@
-#      $NetBSD: dot.login,v 1.4 1997/10/28 03:33:21 mrg Exp $
+#      $NetBSD: dot.login,v 1.5 2000/02/15 19:29:54 abs Exp $
 
-tset -Q \?$TERM
-echo "Don't login as root, use the su command."
+if ( $TERM == unknown ) then
+       tset -Q \?$TERM
+else
+       echo "Terminal type is '$TERM'."
+endif
+
+# Do not display in 'su -' case
+if ( ! $?SU_FROM ) then
+       echo "We recommend creating a non-root account and using su(1) for root access."
+endif



Home | Main Index | Thread Index | Old Index