On Mon 29 Jan 2024 at 15:23:24 +0100, tlaro...@kergis.com wrote: > The typical example is say, with pkgsrc (or any kind of packages > system). One wants to build unprivileged, but installation may be > privileged. So instead of running as non root and having to enter the > password each time the installation of a dependency requires it, one > starts as root, but the privileged rights are only used when needed. > (I know that one can build in a chroot unprivileged and so. > The curiosity is to know if another way to achieve things has been > attempted.)
This can also be done with sudo (or su), just with the sudo calls placed in different locations. That is what the sudo -u parameter is for. As long as the granularity is on process level, su (or sudo) could do it. -Olaf. -- ___ Olaf 'Rhialto' Seibert <rhialto/at/falu.nl> \X/ There is no AI. There is just someone else's work. --I. Rose
signature.asc
Description: PGP signature