Bug 1051 - sudo crashes with log_subcmds
sudo crashes with log_subcmds
Status: RESOLVED DUPLICATE of bug 1050
Product: Sudo
Classification: Unclassified
Component: Sudo
1.9.13
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-03 05:50 MDT by abliss1
Modified: 2023-06-07 11:21 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abliss1 2023-06-03 05:50:12 MDT
Running sudo version 1.9.13-4 on RHEL 9 in testing out sub command logging (i.e. added Defaults log_subcmds to sudoers).  I noticed that sudo will error out when the following is invoked: 'sudo su -' however the following invocation seems to work: 'sudo su'

The following error is thrown by sudo when a user executes 'sudo su -': sudo: argv[0] mismatch, expected "/bin/bash", got "-bash"
Comment 1 Todd C. Miller 2023-06-03 08:11:52 MDT
You can work around this by adding the following to your sudoers file:

Defaults !intercept_verify
Comment 2 Todd C. Miller 2023-06-07 11:21:24 MDT

*** This bug has been marked as a duplicate of bug 1050 ***