[pacman-dev] Patch-proposal for makepkg: be able to use su for installations even if sudo is installed

Johannes Löthberg johannes at kyriasis.com
Sun Jul 26 23:17:41 UTC 2015


On 26/07, Jonas Große Sundrup wrote:
>Hi,
>
>at the moment makepkg will use sudo to obtain root privileges if it is
>installed, otherwise it will use su.
>This means that if sudo is configured to only allow special commands
>(and none of those is "pacman"), "makepkg -i" will fail to install the
>built package. Same goes for installing dependencies with "makepkg -s".
>
>The patch appended introduces a new variable into makepkg.conf named
>SUPER_USER_BINARY, which is set to "sudo" by default. With it being
>"sudo" makepkg will behave as it does currently, so there should be no
>breakages with updates. If not set to sudo, makepkg will ignore an
>installed sudo and use su right away.
>

If the user has access to the root password, why is their sudo commands 
so limited in the first place?

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1495 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20150727/4296b4f9/attachment.asc>


More information about the pacman-dev mailing list