FS#29320 - [sudo] Sometimes fails with error 143
Attached to Project:
Arch Linux
Opened by Tim (tes) - Saturday, 07 April 2012, 10:24 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 29 April 2012, 14:12 GMT
Opened by Tim (tes) - Saturday, 07 April 2012, 10:24 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 29 April 2012, 14:12 GMT
|
Details
Description:
When running sudo, the process *sometimes* exits with return status 143. No further error messages or any indication of what went wrong. This has been going on for at least a few weeks. Additional info: sudo 1.8.4.p4-1 /etc/sudoers: root ALL=(ALL) ALL nt ALL=(ALL) ALL No changes to the sudo pam configuration. Similar problem on the debian bugtracker (not by me): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667814 Steps to reproduce: [root@server: ~]# echo ok > /tmp/test [root@server: ~]# sudo cat /tmp/test; echo $? 143 [root@server: ~]# sudo cat /tmp/test; echo $? 143 [root@server: ~]# sudo cat /tmp/test; echo $? ok 0 [root@server: ~]# sudo cat /tmp/test; echo $? ok 143 [root@server: ~]# sudo cat /tmp/test; echo $? 143 [root@server: ~]# sudo cat /tmp/test; echo $? 143 [root@server: ~]# sudo cat /tmp/test; echo $? ok 0 (Never mind root, it does the same for my user account) |
This task depends upon
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/0001-logind-close-FIFO-before-ending-sessions-cleanly.patch?h=packages/systemd
I've followed the trail of bugreports to the systemd bugtracker: https://bugs.freedesktop.org/show_bug.cgi?id=45670
In the meantime, I've added "session required pam_loginuid.so" to the sshd pam configuration, and now sudo works again.