You can use find and look for .sh_history files older than 90 days. HTH Drew
On Nov 5, 2008, at 5:10 PM, "George Gallen" <[EMAIL PROTECTED]> wrote: > What if you create a directory (not in /tmp, because it gets cleared > every > so often as well). And place in the login script (/etc/profile), a > touch command > (touch /dirctory/`id -un`) using the user login name in that > directory. > > This way, if you sort the directory (ls -lat) you will get a latest > to longest > of who hasn't logged into the system. > > George > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] Behalf Of jpb-u2ug >> Sent: Wednesday, November 05, 2008 3:45 PM >> To: [email protected] >> Subject: RE: [U2] [UD HP-UX] I need to track user logins >> >> >> The problem with last is that the file it uses for logging >> the users "wtmp" >> is usually cleared every month, at least on Red Hat. What I >> do is create a >> text file from the output of the last command at the end of >> each month and >> import the results into the database. That way I have the >> start and stop >> time and day for every user that has logged onto the system during >> the >> month. This had made it easy to show when a user has been at >> work and for >> how long. >> >> Jerry Banker >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Lunt, Bruce >> Sent: Wednesday, November 05, 2008 11:50 AM >> To: [email protected] >> Subject: [U2] [UD HP-UX] I need to track user logins >> >> Hi All, >> >> >> >> I need to provide a report that shows what users have not >> been on the system >> for the last 90 days. I don't know how to do this and was hoping that >> someone out there could help me. >> >> >> >> Thanks in advance, >> >> Bruce Lunt >> ------- >> u2-users mailing list >> [email protected] >> To unsubscribe please visit http://listserver.u2ug.org/ >> ------- >> u2-users mailing list >> [email protected] >> To unsubscribe please visit http://listserver.u2ug.org/ > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
