summaryrefslogtreecommitdiffstats
path: root/etc/root/dot.login
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-06-29 06:30:43 +0000
committerjoerg <joerg@FreeBSD.org>1995-06-29 06:30:43 +0000
commit840299d61d31ddc38cf15c1570037fcc18f7f897 (patch)
tree781e59295659cbb1d9978bb4bd0758b0e8e91fea /etc/root/dot.login
parentd3f63bd3ee5c661b428cd8a799861660da144b7b (diff)
downloadFreeBSD-src-840299d61d31ddc38cf15c1570037fcc18f7f897.zip
FreeBSD-src-840299d61d31ddc38cf15c1570037fcc18f7f897.tar.gz
dot.login:
Finally transform the "Don't login as root..." message to make it clear that `su' is meant to be a command. Will save us a lot of questions about the user named `su'. Make the message magically disappear if the user did an ``su - root'', since it might be a bit silly to ask him to perform an `su'... dot.cshrc: Remove the no-op `-g' options from the ls aliases, and replace them by `-o'. This way, if root does an `ls -l', he will see the immutable flag and (hopefully) not be too surprised about the "Permission denied".
Diffstat (limited to 'etc/root/dot.login')
-rw-r--r--etc/root/dot.login7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/root/dot.login b/etc/root/dot.login
index 697bc7e..0f85667 100644
--- a/etc/root/dot.login
+++ b/etc/root/dot.login
@@ -1,6 +1,9 @@
-# $Id: dot.login,v 1.5 1994/06/15 22:58:47 jkh Exp $
+# $Id: dot.login,v 1.6 1994/09/16 04:20:13 rgrimes Exp $
#
tset -Q \?$TERM
stty crt erase ^H
umask 2
-echo "Don't login as root, use su"
+if ("$0" != "-su") then
+ echo "Don't login as root, login as yourself an use the 'su' command"
+endif
+
OpenPOWER on IntegriCloud