Open leres opened 11 months ago
I see now that poudriere.conf.sample claims the default user/uid is nobody/65534 but when I run a (non-interactive) poudriere bulk
I can see it runs as root.
It seems the intent is for bulk to run as a non-root user but the user is set to root for non-interactive bulk builds and set to nobody for interactive bulk. And UID is always defined in make as 0.
nobody@zinc:/usr/ports/ports-mgmt/pkg % make -V .MAKE.UID
65534
Prerequisites
Describe the bug
Sometimes when I want to do testing on a port I fire up an interactive poudriere jail. When I did this with 3.3.7_4, I would get a root shell in the jail. With 3.4.0 I find I the user is nobody.
I noticed this because when attempting to build a port I get a ton of
chown
errors, e.g:Looking at
bsd.port.mk
I see:And indeed UID is (unexpectly) 0:
So that's a problem as well.
How to reproduce
Environment
Additional context
My poudriere.conf is pretty generic and I can add PORTBUILD_USER=root and PORTBUILD_GROUP=wheel to get the old (root shell) behavior.