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.
Hello,
I have to export a folder via NFS. On this folder, files are written by a user who is uid = 1009, gid=1009.
The export is exported read & write and it is accessible.
The NFS client user is uid = 1010, gid=1010. Such client needs to read, write and delete files on the NFS share. Also server's user has to put files on its folder.
Unfortunately, client user is not able to do because files are owned by a different user uid = 1009, gid=1009.
I'm not allowed to change UID and GID of client and server.
How can I set the export permissions and client nfs mount option in order to let client user work?
The combination of "rw" and "no_root_squash" is very insecure, unless you're the (only) root administrator on both machines!
Furthermore (never used this myself) I think the rpc.idmapd daemon must be started on the server (this is NOT the default). I quote
Quote:
rpc.idmapd is the NFSv4 ID <-> name mapping daemon. It provides functionality to the NFSv4 kernel client and server, to which it communicates via upcalls, by translating user and group IDs to names, and vice versa.
and
Quote:
Note that on more recent kernels only the NFSv4 server uses rpc.idmapd.
The NFSv4 client instead uses nfsidmap(8), and only falls back to rpc.idmapd if there was a problem running the nfsidmap(8) program.
Thanks, I found what I needed! My requirements are that no matter who accesses the folder, the owner and group need to be mapped to the same SERVER user. Basically, what I used to use samba for but now Windows is not involved.
My config is:
closed, secure network (I.E., 4 computers and no internet)
on the server, u/gid 33=www-data
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.