Bugzilla – Bug 41
If i'm right this couly be nasty
Last modified: 2001-06-15 14:14:10 MDT
server : Jun 12 19:07:33 : user : TTY=pts/1 ; PWD=/var/log ; USER=root ; COMMAND=/bin/cat messages This a a output from the mail option in /etc/sudoers The problem (seems) that it's not logging the real syntax when a person is piping commands (|) because the the COMMAND should be. /bin/cat messages |mail my@email.adres So it seems a person can do sudo echo hi |addusers evilaccess |passwd evilacces without being logged
Things like pipes and I/O redirection are handled by the shell so sudo never sees them (and thus can't do matches based on redirection/pipes or log that part of the command).