Bugzilla – Bug 865
Default log_output breaks who am i command output
Last modified: 2019-01-12 10:03:35 MST
Not exactly sure when it got broken but here is the version where it still works as expected compared to the latest one: $ sudo -V Sudo version 1.8.3p2 Sudoers policy plugin version 1.8.3p2 Sudoers file grammar version 40 Sudoers I/O plugin version 1.8.3p2 $ sudo su - [root@xxxxx:/home/root:] who am i mhulka pts/2 Jan 2 12:25 (xxx.xxx.xxx.xxx) [root@xxxxx:/home/root:] $ sudo -V Sudo version 1.8.26 Sudoers policy plugin version 1.8.26 Sudoers file grammar version 46 Sudoers I/O plugin version 1.8.26 $ sudo su - Password: [root@xxxxx:/home/root:] who am i root pts/2 [root@xxxxx:/home/root:] respective configuration part from /etc/sudoers: Defaults log_output Defaults!/usr/bin/sudoreplay !log_output Defaults!/etc/reboot !log_output Defaults!/usr/sbin/reboot !log_output Defaults!/etc/shutdown !log_output Defaults!/usr/sbin/shutdown !log_output if I remove this part from /etc/sudoers everything works as expected however we do not have data for sudoreplay which we would like to have.
checked other versions and it still works in 1.8.18p1 however is already broken in 1.8.22 do not have other versions at the moment to test.
Thanks for narrowing that down, I'll take a look at what has broken the utmp file handling.
This is fixed by the following commit: https://www.sudo.ws/repos/sudo/rev/cf81f3fa1f3a
Fixed in sudo 1.8.27, out now.