it depends how for system is setup but you could log via syslog.conf the way i have it setup is it will log ftp.log (ftp logins) secure.log (ssh logins) mail.log (pop and smtp logins) etc... and of course have a messages file which logs everything..
which would be the easiest way to do it... and you won't need to run a cron job that would use up some resources... I hope that helps Johnno ----- Original Message ----- From: "Nick Rout" <[EMAIL PROTECTED]> To: "CLUG" <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 11:52 AM Subject: which user is a process running as? > I want to know what user the system is running a particular utility as. > The utility runs on demand within the mail system, and so is only > intermittent. I could run top and stare at the screen until it runs > again, and hope I have time to notice the user, but thats not much fun. > > I guess I could write a script to run ps aux|grep processname every few > seconds and append the result to a file. > > Any more elegant ideas? > -- > Nick Rout <[EMAIL PROTECTED]> >
