I setup nfs server, which is running. However when I tried to copy files from all remote nfs clients to my usb disk, I always get the msg: "cannot chown target file. Operation not permitted". (Of course I can local write to the usb disk)
I tried it from a system where the pi3 nfs server is mounted in fstab by using systemd and also
I tried it from an Ubuntu system where the pi3 nfs server is mounted via the CLI (putty/ssh).
At pi3 I have:
- dirs/files at usb disk are: root,root
- in fstab the usb disk mounted as:
Code: Select all
UUID=536507a4-ce85-43d7-aa30-6814a0b7172a /media/net/disk1 ext4 defaults,noatime 0 1Code: Select all
/media/net/disk1 *(rw,all_squash,sync,no_subtree_check,insecure)At remote nfs client:
- in fstab (where pi1 maps to the ip of my pi3):
Code: Select all
pi1:/media/net/disk1 /media/net/RPi_1 nfs x-systemd.automount,user,noauto,retry=0,x-systemd.idle-timeout=60,nolock,rw,timeo=2,retrans=1,x-systemd.device-timeout=2,soft,nofail 0 0Also tried with nfs4 as filesystem type
Mount output is:
Code: Select all
systemd-1 on /media/net/NAS2 type autofs (rw,relatime,fd=59,pgrp=1,timeout=60,minproto=5,maxproto=5,direct)
systemd-1 on /media/net/RPi_1 type autofs (rw,relatime,fd=59,pgrp=1,timeout=60,minproto=5,maxproto=5,direct)At another nfs client (my ubuntu server):
- I used:
Code: Select all
mount -t nfs pi1:/media/net/disk1 /media/net/RPi_1What did I wrong?