FS#64836 - [shadow] useradd, groupadd, etc. are now setuid-root
Attached to Project:
Arch Linux
Opened by Nicolas I. (IooNag) - Saturday, 14 December 2019, 18:40 GMT
Last edited by Levente Polyak (anthraxx) - Sunday, 15 December 2019, 21:10 GMT
Opened by Nicolas I. (IooNag) - Saturday, 14 December 2019, 18:40 GMT
Last edited by Levente Polyak (anthraxx) - Sunday, 15 December 2019, 21:10 GMT
|
Details
Description:
shadow 4.7-3 installs several programs as setuid-root that can create or remove user and groups (useradd, userdel, groupadd, groupdel...). These programs did not have the setuid-root bit before. For example, shadow 4.7-2 (downloadable from https://archive.archlinux.org/packages/s/shadow/) installed these programs without the setuid bit. According to the git history of package shadow, the only major change between 4.7-2 and 4.7-3 is https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/shadow&id=031c7149a15ab0f8a4b49835b9b10773176a40cc, which refers to a bug which seems unrelated to this package ( Additional info: * package version: shadow-4.7-3 * config: Arch Linux x86-64 Steps to reproduce: * Run ls -l /usr/bin/{groupadd,groupdel,groupmod,useradd,userdel,usermod} * Observe "-rwsr-xr-x 1 root root" at the beginning of every line |
This task depends upon
Closed by Levente Polyak (anthraxx)
Sunday, 15 December 2019, 21:10 GMT
Reason for closing: Fixed
Additional comments about closing: 4.8-1
Sunday, 15 December 2019, 21:10 GMT
Reason for closing: Fixed
Additional comments about closing: 4.8-1
To be clear, the full list of affected binaries is: chgpasswd, chpasswd, groupadd, groupdel, groupmod, newusers, useradd, userdel, usermod
There's a new build of shadow, so I'm going to push that into testing with --disable-account-tools-setuid.
I would have thought such distros could simply configure with --bindir and --sbindir, right?