Bug 1051

Summary: sudo crashes with log_subcmds
Product: Sudo Reporter: abliss1
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: low    
Version: 1.9.13   
Hardware: PC   
OS: Linux   

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 ***