diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-08-06 13:59:04 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-08-06 13:59:04 +0000 |
commit | 3923d8caf3cb7928176f906275fea6c06d9209bf (patch) | |
tree | dd7e16f4aad374dba25bcc1b7d676acb37dede00 /etc | |
parent | 7560194d7517eb14bd8aa36f12c73c7b51e80ffe (diff) |
differentiate between logging in as root and using "su -"
Diffstat (limited to 'etc')
-rw-r--r-- | etc/root/dot.login | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/root/dot.login b/etc/root/dot.login index da3c37342ec..28c647c5479 100644 --- a/etc/root/dot.login +++ b/etc/root/dot.login @@ -1,2 +1,5 @@ tset -Q \?$TERM -echo "Don't login as root, use su" + +if ( `logname` == `whoami` ) then + echo "Don't login as root, use su" +endif |