freebsd-src/etc/root/dot.login
Joerg Wunsch c3b65e4d1f Correct my last fix regarding the "Don't login..." message; plain csh
is too stupid to report anything about ARGV[0], so we will always
complain there, even for the "su -" case.  The fix worked for tcsh
however.
1995-07-08 11:11:23 +00:00

15 lines
423 B
Plaintext

# $Id: dot.login,v 1.7 1995/06/29 06:30:43 joerg Exp $
#
tset -Q \?$TERM
stty crt erase ^H
umask 2
# plain csh is too stupid to get any information on ARGV[0] back
if (! $?tcsh) then
echo "Don't login as root, login as yourself and use the 'su' command"
else
# for tcsh, check if we have been invoked by an "su -"
if ("$0" != "-su") \
echo "Don't login as root, login as yourself and use the 'su' command"
endif