c3b65e4d1f
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.
15 lines
423 B
Plaintext
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
|
|
|