Index | Thread | Search

From:
Morgan Aldridge <morgant@makkintosshu.com>
Subject:
Re: Mirroring distfiles for installed ports/packages
To:
"H. Hartzer" <h@hartzer.sh>
Cc:
ports@openbsd.org
Date:
Fri, 9 May 2025 21:03:03 -0400

Download raw body.

Thread
On Fri, May 9, 2025 at 20:51 H. Hartzer <h@hartzer.sh> wrote:

> > dpb -P ~/packages refuses to run. It says "Bad package path."
>
> Ok, I figured this out. dpb must have some permissions restrictions and
> even though I'm running it as root, it can't read /root/packages. /root
> is chmod 700 on this machine. I threw it in /tmp and it runs now.


Per the "Using dpb to Build Multiple Ports"[0] section of the ports FAQ:

"If run as root, dpb will automatically drop privileges to dedicated users
for fetching distfiles and building ports. This is the recommended way to
use it, but it can also run as a regular user."

It's _highly_ suggested to configure PORTS_PRIVSEP[1], especially if using
dpb.

[0] <https://www.openbsd.org/faq/ports/ports.html#dpb>
[1] <https://man.openbsd.org/bsd.port.mk#PORTS_PRIVSEP>

Hope that helps,

Morgan

>