Any way to make pkg use 'sudo' instead of 'su' to install as root?
Kurt Jaeger
lists at opsec.eu
Sun Dec 31 18:37:12 UTC 2017
Hi!
> 'make install' calls pkg, which does su to change to the root account.
> su asks for the root password again and again when there are many
> packages to install.
>
> Is there any way to configure this to be 'sudo'?
>
>
> pkg.conf(5) seems to have no info on this.
In Mk/bsd.commands.mk I found SU_CMD, so maybe redefining SU_CMD works ?
# Command to run commands as privileged user
# Example: "/usr/local/bin/sudo -E sh -c" to use "sudo" instead of "su"
SU_CMD?= /usr/bin/su root -c
--
pi at opsec.eu +49 171 3101372 3 years to go !
More information about the freebsd-ports
mailing list