FS#65186 - Support for OpenDoas as alternative to sudo
Attached to Project:
Pacman
Opened by Damon (TheDcoder) - Friday, 17 January 2020, 17:43 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 18 April 2021, 16:14 GMT
Opened by Damon (TheDcoder) - Friday, 17 January 2020, 17:43 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 18 April 2021, 16:14 GMT
|
Details
Summary and Info:
OpenDoas (opendoas) is a port of `doas`, which is a light alternative to sudo, it is currently recommended as an alternative in several noticeable pages of the wiki (ex. "General recommendations") Currently only sudo and su are supported when privilege escalation is required in makepkg (as far as I know), users who do not use sudo and who have disabled root login will be unable to use makepkg to automatically install dependencies as it only support sudo and su as fallback. Running makepkg as root is also disabled by default. I suggest adding support for detection and usage of the `doas` command as an alternative to `sudo` if it is available. Steps to Reproduce: 1. Make sure (1) `sudo` isn't available and (2) root login is disabled 2. Run `makepkg -s` on a PKGBUILD with unsatisfied dependencies Thank you for your time, I really like how pacman and makepkg are fast! Especially when compared to dnf in Fedora... |
Closed by Eli Schwartz (eschwartz)
Sunday, 18 April 2021, 16:14 GMT
Reason for closing: Implemented
Additional comments about closing: Via FS#32621
Sunday, 18 April 2021, 16:14 GMT
Reason for closing: Implemented
Additional comments about closing: Via
FS#32621which I think should be done instead.FS#68985contains a simple patch which merely hardcodes doas as a new option if sudo isn't found first -- I'd prefer the configurable route.