Greetings :) NFS server (openbsd) with /data/media and files are 1000:1000 uid:gid.
NFS client (openbsd) I want to mount the above files to /var/www/nextcloud/data as 67:67 uid:gid. I have attempted this on NFS server: /etc/exports: /data/media -mapall=1000:1000 -alldirs -network=192.168.1.10 -mask=255.255.255.255 and this on NFS client(192.168.1.10): /etc/fstab: 192.168.1.1:/data/media /var/www/nextcloud/files/media nfs tcp,rw,nodev 0 0 However, when it is mounted, the files are visible as 1000:1000 and when I attempt to write to the directory as www (uid 67) I get permission denied. I would expert my NFS client uid 67 to be mapped to the remote NFS server and presented as 1000 therefore permission should be granted to write? Perhaps it doesn't work like this and I'm confused. I tried reading -mapall in exports(5). A similar thread from 16 years ago[1] attempts to do it the same. [1]: https://misc.openbsd.narkive.com/JsDmMJhB/can-t-map-uid-gid-in-nfs For the sake of others and info purposes, one can achieve this on a Linux NFS server using this hack: /etc/fstab: /data/media /srv/nextcloud-media fuse.bindfs umask=0022,force-user=67,force-group=67 0 0 Then /srv/nextcloud-media would serve the files as 67:67 and the remote NFS client of 67:67 would write to it and it would result in the files being 1000:1000 on the server under /data/media. Though I want it working on OpenBSD and wondering if I'm doing something wrong or if anyone else has any ideas I haven't thought of.