NFS server on Leap 15.6, one NFS client with Leap 15.6 and another with Leap 16.
Both can mount a rw share in Dolphin, but on the Leap 16 box it is ro, regardless of fstab mount options (the same in both clients):
User name/ID is the same in all boxes.
In the Leap 15.6 client services mountd, nfs, nfs3 and rpc-bind are allowed on Yast Firewall module. IDK if all are actually necessary of a client.
In Leap 16 I couldn’t find any front-end to the firewall (in Cockpit or as a standalone app), firewall service shows as active in cockpit.
So how do I allow rw in the Leap 16 box? And how do I manage the firewall?
Was the Leap 16.0 a fresh install? With the first user connectiing? Then the group id from the Leap 16.0 will be bruno not users like on the Leap 15.6 machines.
Yes, it was a fresh install but keeping /home.
No, it’s the same username. I just substituted “user” in place for this post. ID is 1000 on all three boxes.
OK, the username is bruno, in groups admin(wheel), users and bruno (It was only admin(wheel) and users, I included group bruno and it was listed in the available groups but now it can’t be removed (no “x” at the right of the group name).
Edited fstab options to soft,noauto,rw,bruno,timeo=100,retrans=200 0 0
and logged out and back in, but the share is still readonly.
Services nfs, nfs3, mountd and rpc-bind are still open in the firewall.
One difference: I can change the shared folder permissions in the 15.6 box, using Dolphin’s property panel, but not in the Leap 16 box (permission denied).
That’s what I think, yes. But NFS for me is > 10 years ago. I then ran into this issue when a Ubuntu user needed to mount NFS shares. Fixed it, but don’t remember how.
I vaguely remember an issue with nfs4 that required additional authentication (something like PAM, perhaps) to allow write permission, but I may be remembering wrongly - something more frequent as I continue the inexorable march to the 70yo milestone
The primary GID is currently 1000 (bruno), but you’ll need to change that so that users is the primary group. You can change that to be the primary group with sudo usermod -g users bruno. It will take effect at next login.
The server’s share files are owned by GID 100 (users). NFSv4 enforces permissions based on numeric UID and primary GID sent by the client. That results in the RO behavior you’re experiencing on the Leap 16 host.
LEAP 15.6:
bruno@pcem-13:~> id bruno
uid=1000(bruno) gid=100(users) grupos=491(cdrom),483(video),463(vboxusers),100(users)
LEAP 16
bruno@backup:~> id bruno
uid=1000(bruno) gid=1000(bruno) grupos=1000(bruno),100(users),496(wheel)
But after
bruno@backup:~> sudo usermod -g users bruno
[sudo] senha para bruno:
bruno@backup:~> id bruno
uid=1000(bruno) gid=100(users) grupos=100(users),496(wheel)
removing “users” option in fstab and logging out and back in, the share name still appear in Dolphin, under the Network panel, but won’t mount anymore.