Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
- On NFS Server:
+ Create a user: nfs_server (uid-1015, gid-1015)
+ A folder named "/opt" on NFS server with permissions like this
dr-xr-xr-- nfs_server root ...
+ File /etc/exports:
/opt 192.168.3.0/24(rw,root_squash)
- On NFS Client:
+ Create a user: nfs_client (uid-1015, gid-1015)
+ Mount /opt on server to /mnt/test on local machine
- Access to server from the user nfs_client on client machine (a line was already added to fstab so that this non-root-user can mount). Mount was successful.
I have 2 questions:
1. Although "rw" permissions were specified in /etc/exports, nfs_client still couldn't write onto /mnt/test because this user didn't have "w" permission on folder "/opt" on server. Is this correct???
( I have already tested it, I just want to confirm the information)
2. From question 1, we can see that the permissions on a folder at the server must match the permissions specified in /etc/exports. Is this correct?????
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,503
Rep:
I would think that //server/opt needs to be accessable by GID, as a root folder I think it belongs to the root user, & therefore can't be written to by another user unless in the group root. Putting users into group root isn't the best solution, so, I think, change the GID of /opt to 1015, (& maybe add the root user to that group, although I don't think it will be neccessary).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.