Source-Changes-HG archive

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

[src/trunk]: src/etc/root Port to [k]sh(1) startup files David Brownlee's imp...



details:   https://anonhg.NetBSD.org/src/rev/e754bb72dfd6
branches:  trunk
changeset: 482587:e754bb72dfd6
user:      jwise <jwise%NetBSD.org@localhost>
date:      Wed Feb 16 02:02:02 2000 +0000

description:
Port to [k]sh(1) startup files David Brownlee's improvement from
cvs rdiff -r1.4 -r1.5 basesrc/etc/root/dot.login

As there, text is from Miles Nordin.

diffstat:

 etc/root/dot.profile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b43dca6565f0 -r e754bb72dfd6 etc/root/dot.profile
--- a/etc/root/dot.profile      Wed Feb 16 01:27:14 2000 +0000
+++ b/etc/root/dot.profile      Wed Feb 16 02:02:02 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: dot.profile,v 1.11 1999/11/05 11:30:13 mycroft Exp $
+#      $NetBSD: dot.profile,v 1.12 2000/02/16 02:02:02 jwise Exp $
 
 export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 export PATH=${PATH}:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
@@ -15,4 +15,7 @@
 
 export ENV=$HOME/.shrc
 
-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 root access."
+fi



Home | Main Index | Thread Index | Old Index