Bugzilla – Bug 1051
sudo crashes with log_subcmds
Last modified: 2023-06-07 11:21:24 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"
You can work around this by adding the following to your sudoers file: Defaults !intercept_verify
*** This bug has been marked as a duplicate of bug 1050 ***