[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: alerting users of expiring passwords

also sprach Haim Ashkenazi <haim@babysnakes.org> [2003.10.15.0005 +0200]:
> I guess you can get it with 'cut' command. something like:
> TIME=`grep <username> /etc/shadow | cut -d":" -f 5`
> echo "your password will expire in $TIME days"

i'd have to delete (numDays(now() - 1970.01.01)) from it. while this
is a solution, there should really be a better one. thanks though!

Please do not CC me when replying to lists; I read them!
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: pgpO7Pjrfevmx.pgp
Description: PGP signature

Reply to: