Root shell with logging

Manuel Arostegui Ramirez manuel at todo-linux.com
Thu May 10 08:00:55 UTC 2007


On Thursday 10 May 2007 09:52:13 Krishnaprasad_K at dell.com wrote:
> ps ax will show all the processes running in your system. Redirect its
> output to a file when a user logs in.
>
> add this command in /etc/profile script
> 	ps ax > /tmp/processes.txt
>
> Regards,
> Krishnaprasad
>
>
> -----Original Message-----
> From: redhat-list-bounces at redhat.com
> [mailto:redhat-list-bounces at redhat.com] On Behalf Of chockalingam
> Sent: Thursday, May 10, 2007 12:29 PM
> To: General Red Hat Linux discussion list
> Subject: Re: Root shell with logging
>
> Hi All,
>
> I am looking for the solution of logging all the fg and bg processes
> when
> some user logs in.
> I need this log to be forwarded to a file, for later analysis.
>
> Please help....
>
> Regards,
> Chockalingam.S
> --


I just wonder....are the users going to be informed about all this stuff?
I mean, I do know that you have your own reasons to do that, but I guess you 
should warn your users about all the log policy you're going to have in your 
system...

Cheers
-- 
Manuel Arostegui Ramirez.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.




More information about the redhat-list mailing list