FS#34656 - Paccache privilege escalation through "su -c" fails
Attached to Project:
Pacman
Opened by Alexander Blinne (Sunday) - Sunday, 07 April 2013, 12:50 GMT
Last edited by Allan McRae (Allan) - Tuesday, 16 April 2013, 02:34 GMT
Opened by Alexander Blinne (Sunday) - Sunday, 07 April 2013, 12:50 GMT
Last edited by Allan McRae (Allan) - Tuesday, 16 April 2013, 02:34 GMT
|
Details
Description:
When paccache is used to remove old package archives (paccache -r) and "su -c" is used for privilege escalation packages can not be deleted. Privilege escalation fails because the passwort can't be given to su. I believe this to be caused by the patch http://archlinux.2023198.n4.nabble.com/PATCH-paccache-use-xargs-to-execute-mv-rm-commands-tc4684182.html, which changes command execution to using xargs and a pipe. The pipe disconnects stdin from su and it is not possible to pass the password to su. Every keystroke at the passwort prompt is printed to the screen. I don't know if the same problem also affects sudo. Additional info: * package version(s) pacman 4.1.0-2 Steps to reproduce: Disable sudo and run 'paccache -r'. If there are packages to be removed the problem will occur. |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 16 April 2013, 02:34 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 597286eb
Tuesday, 16 April 2013, 02:34 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 597286eb
$ su -c "paccache -r"
works perfectly fine.