summaryrefslogtreecommitdiff
path: root/etc/security
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2002-07-23 18:26:36 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2002-07-23 18:26:36 +0000
commit972fba49440324a88018cc7cfcdbe71ae4b40d7e (patch)
tree82c47e8c10ccb9bba31b60028e308bd96318639c /etc/security
parent54c2357e9a339a6bed2216a269d5e948a126af2b (diff)
check account expiration time as well; from hamajima@nagoya.ydc.co.jp pr2835
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/security b/etc/security
index e23b82cb818..5c2342d637b 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.52 2002/07/17 01:32:04 jcs Exp $
+# $OpenBSD: security,v 1.53 2002/07/23 18:26:35 pvalchev Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -52,6 +52,8 @@ awk -F: '{
printf("Login %s has a negative user ID.\n", $1);
if ($4 < 0)
printf("Login %s has a negative group ID.\n", $1);
+ if ($7 != 0 && system("test "$7" -lt `date +%s`") == 0)
+ printf("Login %s has expired.\n", $1);
}' < $MP > $OUTPUT
if [ -s $OUTPUT ] ; then
echo "\nChecking the ${MP} file:"