• NFS + nobody user? (was: Re: poudriere + ZFS + NFS -> chown: /usr/local/poudriere/data/.m/rpi5-freebsd143-custom/01/.npkg: Operation not permitted)

    From Ronald Klop@ronald-lists@klop.ws to muc.lists.freebsd.ports on Thu Oct 30 10:59:28 2025
    From Newsgroup: muc.lists.freebsd.ports

    ------=_Part_80620_1450285257.1761818368426
    Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit

    Hi,

    What is special about the nobody (65534) user in NFS?
    I couldn't find anything in the documentation that prohibits this uid to be used. But I get errors when I do chown 65534, but not with chown 65533 or 65535.

    Ronald.


    Van: Ronald Klop <ronald-lists@klop.ws>
    Datum: dinsdag, 28 oktober 2025 16:57
    Aan: ports@freebsd.org
    Onderwerp: Re: poudriere + ZFS + NFS -> chown: /usr/local/poudriere/data/.m/rpi5-freebsd143-custom/01/.npkg: Operation not permitted

    I resolved this by telling poudriere to use another user for the build.

    So my poudriere.conf now contains PORTBUILD_USER=builduser.
    And builduser is defined with uid 65532.

    Regards,
    Ronald.


    Van: Ronald Klop <ronald-lists@klop.ws>
    Datum: dinsdag, 28 oktober 2025 15:26
    Aan: ports@freebsd.org
    Onderwerp: poudriere + ZFS + NFS -> chown: /usr/local/poudriere/data/.m/rpi5-freebsd143-custom/01/.npkg: Operation not permitted

    Hi,

    I have the following setup of jails with poudriere running in Jenkins:

    pkg jail: running lighttpd exporting the poudriere UI. This jail NFS exports /usr/local/poudriere/data/logs/bulk and /usr/local/poudriere/data/packages.

    poudriere jail 1: running poudriere+ZFS and it NFS mounts /usr/local/poudriere/data/logs/bulk and /usr/local/poudriere/data/packages from the pkg jail.
    poudriere jail 1: running poudriere (no ZFS) and it NFS mounts /usr/local/poudriere/data/logs/bulk and /usr/local/poudriere/data/packages from the pkg jail.

    The mounts work, I can access the files on the command line.

    But on the pourdriere with ZFS at the end of the first build I get this error:
    [00:01:32] ====> Compressing man pages (compress-man)
    [00:01:32] ===> Installing ldconfig configuration file
    [00:01:32] ===========================================================================
    [00:01:32] chown: /usr/local/poudriere/data/.m/rpi5-freebsd143-custom/01/.npkg: Operation not permitted
    [00:01:32] =======================<phase: package >============================
    [00:01:32] ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2025-10-28T13:33:27+00:00' 'PKG_NOTE_ports_top_git_hash=d72ccf55aa06' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20251006' NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
    [00:01:32] ===> Building packages for pkg-2.3.1
    [00:01:32] mkdir: /.npkg/All: Permission denied
    [00:01:32] *** Error code 1
    Any idea why this happens?
    This directory is not NFS mounted, so why would it give an error here?

    Regards,
    Ronald.





    ------=_Part_80620_1450285257.1761818368426
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <html><head></head><body><div class="MessageRFC822Viewer" id="P"><!-- P --><!-- processMimeMessage -->
    <div class="MultipartAlternativeViewer"><!-- P.P -->
    <div class="TextHTMLViewer" id="P.P.P"><!-- P.P.P -->Hi,<br>

    What is special about the nobody (65534) user in NFS?<br>
    I couldn't find anything in the documentation that prohibits this uid to be used. But I get errors when I do chown 65534, but not with chown 65533 or 65535.<br>

    Ronald.<br>

    &nbsp;
    <p><strong>Van:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br> <strong>Datum:</strong> dinsdag, 28 oktober 2025 16:57<br> <strong>Aan:</strong> ports@freebsd.org<br>
    <strong>Onderwerp:</strong> Re: poudriere + ZFS + NFS -&gt; chown: /usr/local/poudriere/data/.m/rpi5-freebsd143-custom/01/.npkg: Operation not permitted</p>

    <blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
    <div class="MessageRFC822Viewer" id="P">
    <div class="MultipartAlternativeViewer">
    <div class="TextHTMLViewer" id="P.P.P">I resolved this by telling poudriere to use another user for the build.<br>

    So my poudriere.conf now contains PORTBUILD_USER=builduser.<br>
    And builduser is defined with uid 65532.<br>

    Regards,<br>
    Ronald.<br>

    &nbsp;
    <p><strong>Van:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br> <strong>Datum:</strong> dinsdag, 28 oktober 2025 15:26<br> <strong>Aan:</strong> ports@freebsd.org<br>
    <strong>Onderwerp:</strong> poudriere + ZFS + NFS -&gt; chown: /usr/local/poudriere/data/.m/rpi5-freebsd143-custom/01/.npkg: Operation not permitted</p>

    <blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
    <div class="MessageRFC822Viewer" id="P">
    <div class="MultipartAlternativeViewer">
    <div class="TextHTMLViewer" id="P.P.P">Hi,<br>

    I have the following setup of jails with poudriere running in Jenkins:<br>

    pkg jail: running lighttpd exporting the poudriere UI. This jail NFS exports /usr/local/poudriere/data/logs/bulk and&nbsp;/usr/local/poudriere/data/packages.<br>

    poudriere jail 1: running poudriere+ZFS and it NFS mounts&nbsp;/usr/local/poudriere/data/logs/bulk and&nbsp;/usr/local/poudriere/data/packages from the pkg jail.<br>
    poudriere jail 1: running poudriere (no ZFS) and it NFS mounts&nbsp;/usr/local/poudriere/data/logs/bulk and&nbsp;/usr/local/poudriere/data/packages from the pkg jail.<br>

    The mounts work, I can access the files on the command line.<br>

    But on the pourdriere with ZFS at the end of the first build I get this error: <pre style=";white-space: pre-wrap;white-space: pre-wrap;white-space: pre-wrap;white-space: pre-wrap;white-space: pre-wrap;">[00:01:32] ====&gt; Compressing man pages (compress-man)
    [00:01:32] ===&gt; Installing ldconfig configuration file
    [00:01:32] ===========================================================================
    [00:01:32] chown: /usr/local/poudriere/data/.m/rpi5-freebsd143-custom/01/.npkg: Operation not permitted
    [00:01:32] =======================&lt;phase: package &gt;============================
    [00:01:32] ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2025-10-28T13:33:27+00:00' 'PKG_NOTE_ports_top_git_hash=d72ccf55aa06' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20251006' NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
    [00:01:32] ===&gt; Building packages for pkg-2.3.1
    [00:01:32] mkdir: /.npkg/All: Permission denied
    [00:01:32] *** Error code 1
    </pre>

    Any idea why this happens?<br>
    This directory is not NFS mounted, so why would it give an error here?<br>

    Regards,<br>
    Ronald.</div>
    </div>
    </div>
    </blockquote>

    &nbsp;</div>
    </div>
    </div>
    </blockquote>

    &nbsp;</div>
    <!-- TextHTMLViewer --></div>
    <!-- MultipartAlternativeViewer --></div>
    <!-- MessageRFC822Viewer --></body></html> ------=_Part_80620_1450285257.1761818368426--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2