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
Task Type Feature Request
Category makepkg
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.2.1
Due in Version 6.0.0
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

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 
Comment by Eli Schwartz (eschwartz) - Thursday, 17 December 2020, 20:08 GMT
See  FS#32621  which I think should be done instead.

 FS#68985  contains a simple patch which merely hardcodes doas as a new option if sudo isn't found first -- I'd prefer the configurable route.

Loading...