diff options
| author | David Greenman <dg@FreeBSD.org> | 1995-08-25 03:42:24 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1995-08-25 03:42:24 +0000 |
| commit | 2988a6b97574fca58fd5cc8dce900dee29f75ac2 (patch) | |
| tree | 57dc26890fb7bebf53199e84dc2f0dde204a7bc6 /etc/root | |
| parent | ba0a4e5851af25912ad5b1aa0f3bec09623be229 (diff) | |
Notes
Diffstat (limited to 'etc/root')
| -rw-r--r-- | etc/root/dot.login | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/etc/root/dot.login b/etc/root/dot.login index 697bc7e6521d..2b9fb2214d84 100644 --- a/etc/root/dot.login +++ b/etc/root/dot.login @@ -1,6 +1,14 @@ -# $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" +# 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 + |
