tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting up pkgsrc over NFS



On 12/11/2018 13:24, Robert Swindells wrote:

Roy Marples <roy%marples.name@localhost> wrote:
I have this in /etc/exports:
/usr/src        -network 10.73.0.0 -mask 255.255.0.0    -maproot=nobody
/usr/xsrc       -network 10.73.0.0 -mask 255.255.0.0    -maproot=nobody
/usr/pkgsrc     -network 10.73.0.0 -mask 255.255.0.0    -maproot=nobody
/usr/obj.aarch64        -network 10.73.0.0 -mask 255.255.0.0
-maproot=nobody
/usr/obj.pkgsrc.aarch64 -network 10.73.0.0 -mask 255.255.0.0
-maproot=nobody
/var/bulk.aarch64       -network 10.73.0.0 -mask 255.255.0.0
-maproot=root

The last directory requires root writeable as it will be used for a chroot.
However, it doesn't show up in showmount -e on the host and trying to
mount it on the client prints:
mount_nfs: can't access /var/bulk.aarch64: Permission denied.

What did I do wrong here, or does root mapping just not work?

I also have the -alldirs option for the export on my NFS server. I don't
think I need this though as I just have src, xsrc and pkgsrc as top
level directories on one filesystem and use symbolic links on client
machines.

Adding this does not resolve the two errors noted above.

What filesystems do those directories map onto on the local machine ?

ffs.

I should note that changing -maproot=root to -maproot=nobody allows the mount to show and become mounted, but then i can't actually use it as a chroot.

Roy


Home | Main Index | Thread Index | Old Index