summaryrefslogtreecommitdiff
path: root/etc/root
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-08-06 13:59:04 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-08-06 13:59:04 +0000
commit3923d8caf3cb7928176f906275fea6c06d9209bf (patch)
treedd7e16f4aad374dba25bcc1b7d676acb37dede00 /etc/root
parent7560194d7517eb14bd8aa36f12c73c7b51e80ffe (diff)
differentiate between logging in as root and using "su -"
Diffstat (limited to 'etc/root')
-rw-r--r--etc/root/dot.login5
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