Different log files in sudo?

Todd C. Miller Todd.Miller at courtesan.com
Fri Dec 14 13:18:32 EST 2001

In message <15386.16524.954292.319522 at komodo.home.wards.net>
	so spake  (bill):

> I suppose sudo could tee stdin/out/err to a file.  Can that be
> defeated?

Probably.  You can do the equivalen of dup(2) in the shell.
The real way to do this is to intercept execve(2) and do the
sudo checks there but that requires using ptrace(2) which
a) I've never used and b) which seems OS-specific.

It's something I'd like to look into some day but not right now...

 - todd

More information about the sudo-users mailing list