How can I configure rw access to NAS share for users via NFS with Yast???


I try this already for some time, but I can only access NAS shares via NFS read-only.

I have entered hostname of NFS Server and chosen the folder ("/"). Selected a local mount point ("/home/user/NAS-Server").

I tried it with NFSv4 and without.

I do not know which options I have to add. I tried “rw,user”, “defaults,rw,user”.

I cannot add authetification. The options field does not allow me to enter username and password (it is needed for rw access).

Under NFS settings I tried it with NFSv4 and without (matching the settings above) and activated GSS security or not.

I have read access as normal user from dolphin and krusader and terminal, but no write access. Any help? What am missing??? Thanks!


How is it exported (at the NFS server)?

Who is the owner (uid and gid)? This you can check on the client by an ls -l of one of files in the NFS mount, e.g.

ls -l /home/user/NAS-Server
bogislav@linux-u7cl:~> ls -l /home/bogislav/NAS-Server/
insgesamt 28
drwxr-xr-x  2 root   root     40 27. Jan 10:24 **Backups**
drwxr-xr-x  2 root   root     40 27. Jan 10:24 **Documents**
drwxr-xr-x  2 root   root     40 27. Jan 10:24 **MediaDB**
drwxrwxrwx  8 nobody users  4096 30. Dez 20:47 Movies
drwxrwxrwx 10 nobody users 12288 13. Jan 08:46 Music
drwxrwxrwx  8 nobody users  4096  2. Dez 2016  Pictures
drwxr-xr-x  2 root   root     40 27. Jan 10:24 **QuikTransfer**
-rw-r--r--  1 root   root     26 27. Jan 10:24 robots.txt
drwxrwxrwx 11 nobody users  4096 27. Jan 12:58 SharedMedia

I do not know what you mean how it is exported at NAS-Server. It is exported in a way to allows access, and e.g. access works through my Android smartphone.

As you can see, these files/directories are either owned by root:root, or by unknown:users.

Who has created those files (with who I do of course not mean any human person, but which user on which system).

I also assume that you mounting it at /home/user/NAS-Server means that the user “user” (this is a confusing name for a user in a discussion like this :() is NOT the owner of these files.
When I then may also assume that user name “user” has the uid 1000 (but that nmay be differenmt depending on how many users you configured on the system), the you better see that the files on the server are also oened by user: users (that is then 1000:100).
This is the normal Unix/Linux protection against other users. And with NFS you better see that user/group administration on both server and client(s) are the same.

“user” in fstab options means that non-root is allowed to mount this filesystem. It has no effect otherwise.

Ok, yet again a different usage of the word “user”. To increase confusion.
(But you are correct of course).

I don’t believe NFS supports user level permissions, outside the normal linux user permissions. I usually use samba for that.