Browse Source

check account expiration time as well; from hamajima@nagoya.ydc.co.jp pr2835

OPENBSD_3_2
pvalchev 22 years ago
parent
commit
35165da9c8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/etc/security

+ 3
- 1
src/etc/security View File

@ -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:"


Loading…
Cancel
Save