I have a problem with getting the write permission for the linux client within the mounted USB-Stick (NFS-Server on ipfire device).
The windows machine getting permissions, but the linux not.
I thought about uid and gid parameters in fstab of the client, but it shows me an error if i put it there.
The thing is, that the permissions for the folder on the client for the mounting the nfs drive there has the following permissions (if NOT mounted): drwx------ 2 user user 4.0K Jun 28 20:56 /xxx/server
If i mount the device i get the following permissions: drwxr-xr-x 8 root root 16K Jan 1 1970 /xxx/server
I can write on it with my root account, but not with the user account.
This is the fstab of the client:
nfs-device-IP:/xxx/server /xxx/server nfs user,noexec,rw,nofail,sync,tcp,intr 0 0
in exports i have the following options for the client: (rw,async,subtree_check,no_root_squash)
I have tried to chown it from root to user on the client and it seems to work, but if i mount the device on it, it can be just written with root.
here is the mount -v output on the client: serverIP:/xxx/server on /xxx/server type nfs4 (rw,nosuid,nodev,noexec,relatime,sync,vers=4.2,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=xxx,local_lock=none,addr=xxx,user=user)
So do somebody know, what the point is?