Command logging?

Nathan Dietsch nathandi at access.com.au
Sun Aug 13 19:28:25 EDT 2000


Paul,

Thank for the idea, I was going to copy out the .sh_history, but your idea
is also valid.

Regards,

Nathan Dietsch
Systems Consultant
Access Systems Research

ndietsch at access.com.au

On Fri, 11 Aug 2000, Paul Lussier wrote:

> 
> In a message dated: Fri, 11 Aug 2000 10:35:56 +1000
> Nathan Dietsch said:
> 
> >All,
> >
> >I was wondering, is there are a way to log commands executed once a user
> >has sudo'd to a shell, root or otherwise. I was thinking of copying out
> >the .sh_history etc, but if sudo could do it, it would be much cleaner.
> 
> I don't think so.  What you could do though, is have the shell config file
> started by root log via the 'script' program.  You'd have to do a little 
> creative shell hacking so that script wouldn't trounce on it's own file should 
> multiple shells be started, but that's pretty easy to overcome.
> -- 
> Seeya,
> Paul
> ----
> 	"I always explain our company via interpretive dance.
> 	     I meet lots of interesting people that way."
> 					  Niall Kavanagh, 10 April, 2000
> 
> 	 If you're not having fun, you're not doing it right!
> 
> 
> ____________________________________________________________ 
> sudo-users mailing list <sudo-users at courtesan.com>
> For list information, options, or to unsubscribe, visit:
> http://www.courtesan.com/mailman/listinfo/sudo-users
> 




More information about the sudo-users mailing list