Thank you! I had seen your post about NFS and had taken some information from it.
It still have no write acces in the multimedia folders when accessing from my client.
This is what I set up:
On the server:
$ ls -ld /home/yunohost.multimedia/share
drwxrwxr-x+ 8 server_admin server_admin 4096 Jan 31 12:50 /home/yunohost.multimedia/share
drwxrwxr-x+ 8 server_admin server_admin 4096 Jan 31 12:50 /nfsv4/yunohost.multimedia.share
This is my line in the /etc/fstab on the server:
/home/yunohost.multimedia/share /nfsv4/yunohost.multimedia.share none bind 0 0
This is my entry in /etc/exports on the server:
/nfsv4 192.168.178.0/24(rw,sync,all_squash,no_subtree_check,anonuid=19110,anongid=19110,fsid=0)
/nfsv4/yunohost.multimedia.share 192.168.178.48(rw,sync,all_squash,no_subtree_check,anonuid=19110,anongid=19110)
This is what sudo exportfs -v gives me:
/nfsv4/yunohost.multimedia.share
192.168.178.48(sync,wdelay,hide,no_subtree_check,anonuid=19110,anongid=19110,sec=sys,rw,secure,root_squash,all_squash)
/nfsv4 192.168.178.0/24(sync,wdelay,hide,no_subtree_check,fsid=0,anonuid=19110,anongid=19110,sec=sys,rw,secure,root_squash,all_squash)
The id-check on the server gives this:
$ id server_admin
uid=19110(server_admin) gid=19110(server_admin) groups=19110(server_admin),1003(multimedia),4001(admins),4002(all_users),5001(mail.main),88820(fail2ban-web.main),37531(nextcloud.api),31261(nextcloud.main),70273(roundcube.main),20715(vaultwarden.admin),62347(vaultwarden.main),99558(jellyfin.admin),75880(jellyfin.main),32168(adguardhome.main)
On the client I do the mount like this:
$ sudo mount -t nfs -o nfsvers=4 192.168.178.25:/yunohost.multimedia.share /home/client_user/NFS-test
The mount is successful and the mapping seems to work too. I can write into the share folder but not in the multimedia-folders in it:
$ touch /home/client_user/NFS-test/test.txt
$ ls -l /home/client_user/NFS-test/test.txt
-rw-rw-r--+ 1 19110 19110 0 Jan 31 13:38 /home/client_user/NFS-test/test.txt
$ touch /home/client_user/NFS-test/Documents/test.txt
touch: '/home/client_user/NFS-test/Documents/test.txt' kann nicht berĂĽhrt werden: Keine Berechtigung
When I do the same on the server as the same user, it works.
$ touch /nfsv4/yunohost.multimedia.share/Documents/test.txt
$ ls -l /nfsv4/yunohost.multimedia.share/Documents/test.txt
-rw-rw-r--+ 1 server_admin server_admin 0 Jan 31 14:18 /nfsv4/yunohost.multimedia.share/Documents/test.txt
This is quite a mystery to me…