Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#63920 - [shadow] error message during pacstrap
Attached to Project:
Arch Linux
Opened by Toolybird (Toolybird) - Wednesday, 25 September 2019, 23:07 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 12 July 2020, 14:11 GMT
Opened by Toolybird (Toolybird) - Wednesday, 25 September 2019, 23:07 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 12 July 2020, 14:11 GMT
|
DetailsDescription:
The fix for Additional info: * package version(s) -> shadow-4.7-2 * config and/or log files etc. <...> ( 35/125) installing pambase ( 36/125) installing pam ( 37/125) installing libcap-ng ( 38/125) installing audit ( 39/125) installing shadow error: command failed to execute correctly ( 40/125) installing libcap ( 41/125) installing coreutils ( 42/125) installing libgpg-error ( 43/125) installing libgcrypt <...> Steps to reproduce: mkdir /path/to/chroot mkarchroot /path/to/chroot/root base-devel shadow likely needs a dep on libcap |
This task depends upon
Closed by Dave Reisner (falconindy)
Sunday, 12 July 2020, 14:11 GMT
Reason for closing: Fixed
Additional comments about closing: shadow-4.8.1-2
Sunday, 12 July 2020, 14:11 GMT
Reason for closing: Fixed
Additional comments about closing: shadow-4.8.1-2
Something like the following should work:
```
setcaps() {
# shadow ships these as setuid, but if we can apply file caps, use those instead.
filecap usr/bin/newuidmap setuid 2>/dev/null && chmod -s usr/bin/newuidmap
filecap usr/bin/newgidmap setgid 2>/dev/null && chmod -s usr/bin/newgidmap
}
post_install() {
setcaps
}
post_upgrade() {
setcaps
}
```
# filecap usr/bin/newuidmap setuid # broken
Unrecognized capability.
usage: filecap [-a | -d | /dir | /dir/file [cap1 cap2 ...] ]
# filecap /usr/bin/newuidmap setuid # works fine