Bug 168 - SUDO 1.6.8 does not log complete command when using a semicolon
SUDO 1.6.8 does not log complete command when using a semicolon
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
Other FreeBSD
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-02-22 14:23 MST by Forrest Aldrich
Modified: 2005-02-22 20:17 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forrest Aldrich 2005-02-22 14:23:12 MST
On FreeBSD-5.x, with the latest sudo, under BASH-3, if I run sudo and use a
command line of (ie):

sudo clear; command; command

the only item that's logged is "clear".
Comment 1 Todd C. Miller 2005-02-22 16:17:47 MST
You only ran a single command through sudo, the "clear" command.  In the shell a semicolon is a 
command delimiter.  That is, it ends the current command and starts a new one so what you have are 
three separate commands, only the first of which is run via sudo.  The others will run normally, without 
elevated permissions.