diff options
author | joerg <joerg@FreeBSD.org> | 1995-06-29 06:30:43 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-06-29 06:30:43 +0000 |
commit | 840299d61d31ddc38cf15c1570037fcc18f7f897 (patch) | |
tree | 781e59295659cbb1d9978bb4bd0758b0e8e91fea /etc/root | |
parent | d3f63bd3ee5c661b428cd8a799861660da144b7b (diff) | |
download | FreeBSD-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')
-rw-r--r-- | etc/root/dot.cshrc | 6 | ||||
-rw-r--r-- | etc/root/dot.login | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc index ffa5ecc..7db55b8 100644 --- a/etc/root/dot.cshrc +++ b/etc/root/dot.cshrc @@ -1,4 +1,4 @@ -# $Id: dot.cshrc,v 1.11 1994/09/22 08:23:02 rgrimes Exp $ +# $Id: dot.cshrc,v 1.12 1994/10/27 05:26:59 phk Exp $ # alias mail Mail set history=1000 @@ -10,8 +10,8 @@ set path=(/sbin /usr/sbin /bin /usr/bin /usr/local/bin) alias cd 'set old=$cwd; chdir \!*' alias h history alias j jobs -l -alias ll ls -lg -alias ls ls -g -k +alias ll ls -lo +alias ls ls -o -k alias back 'set back=$old; set old=$cwd; cd $back; unset back; dirs' alias z suspend 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 + |