-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [EMAIL PROTECTED] wrote: > I have been running a small server for about a year, > New account are growing fairly well. > > Anyone who has a script to set cron to delete old unused accounts ?
You can write a script that uses 'last -n 1 username' to find the last login by a user. You have to parse the output to get the date. Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux: the choice of a GNU Generation. <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]> iD8DBQE895BCpCpg3WyUI50RAryjAKC0NxXdDKOULUkYHhdruzpXA7eE5QCeMYjL B2VEnpQmznJsqQ49CWnHBp0= =vUmu -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list