From 840299d61d31ddc38cf15c1570037fcc18f7f897 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 29 Jun 1995 06:30:43 +0000 Subject: 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". --- etc/root/dot.cshrc | 6 +++--- etc/root/dot.login | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'etc') 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 + -- cgit v1.1