pll at mclinux.com
Fri Aug 11 08:31:14 EDT 2000
In a message dated: Fri, 11 Aug 2000 10:35:56 +1000
Nathan Dietsch said:
>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.
"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!
More information about the sudo-users