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 revisions 1.12-1.15 (via patch, reques...
details: https://anonhg.NetBSD.org/src/rev/44e5ae9f545d
branches: netbsd-1-4
changeset: 470394:44e5ae9f545d
user: he <he%NetBSD.org@localhost>
date: Tue Feb 22 22:27:30 2000 +0000
description:
Pull up revisions 1.12-1.15 (via patch, requested by jwise):
Implement better handling of the SU_FROM environment variable.
diffstat:
etc/root/dot.profile | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r cd17fa980d95 -r 44e5ae9f545d etc/root/dot.profile
--- a/etc/root/dot.profile Tue Feb 22 22:27:02 2000 +0000
+++ b/etc/root/dot.profile Tue Feb 22 22:27:30 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.9.2.1 1999/04/19 04:04:02 mycroft Exp $
+# $NetBSD: dot.profile,v 1.9.2.2 2000/02/22 22:27:30 he Exp $
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
PATH=${PATH}:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
@@ -7,11 +7,8 @@
BLOCKSIZE=1k
export BLOCKSIZE
-HOME=/root
-export HOME
-
if [ -x /usr/bin/tset ]; then
- eval `/usr/bin/tset -sQ \?$TERM`
+ eval `/usr/bin/tset -sQrm 'unknown:?unknown'`
fi
umask 022
@@ -22,4 +19,7 @@
PS1="`hostname -s`$PS1"
-echo "Don't login as root, use the su command."
+# Do not display in 'su -' case
+if [ -z "$SU_FROM" ]; then
+ echo "We recommend creating a non-root account and using su(1) for access."
+fi
Home |
Main Index |
Thread Index |
Old Index