diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
| commit | ae532ecb79a736724b77e8ceab00bb73ea1e3e18 (patch) | |
| tree | 67278d75d3abf5f6772c71401cc931a0c8700dee /usr.bin | |
| parent | d1017b80bf6700bda12884c8a6c4d7c8793900de (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/su/su.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index df7165b8c823e..b3eb587dfecb7 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -214,6 +214,13 @@ main(argc, argv) } #endif /* WHEELSU */ } + if (pwd->pw_expire && time(NULL) >= pwd->pw_expire) { + fprintf(stderr, "Sorry - account expired\n"); + syslog(LOG_AUTH|LOG_WARNING, + "BAD SU %s to %s%s", username, + user, ontty()); + exit(1); + } } } |
