Root shell with logging

mark m.roth2006 at rcn.com
Thu May 10 12:40:54 UTC 2007


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 
<snip>
Don't think that's quite what he was asking for. ps -fu <username> might be 
closer. However, he said *root* shell with logging, implying not just any user. 
My solution to that would be that the folks he's worrying about logging should 
not log in as root, but rather use sudo, which logs every command they issue.

	mark




More information about the redhat-list mailing list