Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/etc/root Pull up revision 1.5 (requested by abs):
details: https://anonhg.NetBSD.org/src/rev/96a24006e3b7
branches: netbsd-1-4
changeset: 470375:96a24006e3b7
user: he <he%NetBSD.org@localhost>
date: Fri Feb 18 19:32:00 2000 +0000
description:
Pull up revision 1.5 (requested by abs):
Have su set SU_FROM environment variable, and use to avoid
incorrect 'use su' warning in root's .login.
Also do not prompt for terminal type unless it is unknown.
diffstat:
etc/root/dot.login | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r d59a89a8a35c -r 96a24006e3b7 etc/root/dot.login
--- a/etc/root/dot.login Fri Feb 18 19:31:24 2000 +0000
+++ b/etc/root/dot.login Fri Feb 18 19:32:00 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.4.2.1 2000/02/18 19:32:00 he 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