Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You could make the permissions on the directory you are exporting world readable/writable.
You could also create a group on both machines and add the users you want to have read/write access. Then set that group as the group owner on the directory with chgrp and apply the appropriate permissions using chmod. Just make sure the GID of the group is the same on both the NFS server and client machines.
If the UID of the user you're trying to write as doesn't have local permissions to the folder, then I don't think they will be able to write to it regardless of the rw option in the NFS exports file.
No making rw in NFS will allow writable bit set in NFS but if the file system permissions are not set to allow write permissions to certain users, it will not allow writing to the folder. On the NFS server from where you have exported the share, use chmod 755 or whatever permissions you want on the folder.
If the only user from client is root, you should have no problems. But there are other users than root, one way is to synchronise the user ids on both, client and server and set the permissions accordingly. Else you could make the folder world writable by changing the permissions to 777. Its your take on it but I would not prefer to make it world writable if I do not know what I am doing. But synchronising users would also take a lot of time if you do not have centralised user management and to make it easy you could make the folder world writable.
Just change the permissions to 777 for the folder.
No. Both are independent. exports file is used to export the share over the network for clients over NFS. And file system permissions are guided by the host operating system. Both are needed. Unless you used exports file, clients would not see the shares.
And if there are any more doubts, you can google first. It should give you more information than what you need. And if you feel issue has been resolved, you should mark the thread solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.