How to restrict users / groups and better secure NFS
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.
How to restrict users / groups and better secure NFS
Hi there,
I am still a beginner so don't crucify me for asking silly questions.
I run a computer with slackware and export 3 drives via NFS over our home network.
I would like to restrict certain directories but because NFS does not require a sign-on; how can I restrict it properly ?
If I say that only the user with ID 412 has access to a certain folder then that means all somebody has to do it mount the share using a UID of 412 on their 'LOCAL' computer, and they have full access ?
Please can somebody help ?
I'd like a way to only allow users of on the server to use NFS and I want a way to verify they are who they say they are and then apply a usage policy.
Instead on somebody just plugging into the network, spoofing a UID and getting access.
Maybe I am totally wrong about my whole interpretation ?
I don't know the answer, but I suspect that when NFS was conceived, user contro lwas done at the client end, so log into a remote system, the account setup at that end took control (through use of automounts or what ever). Since these are under root's control, it prety much gets you there
Assuming all the files are on machine A, and the remote machine is B, couldn't you just change the read/write permissions on the mount point of B so that only certain users could use it?
You really should look at OpenAFS, which was designed from the ground up to do what you are looking for. AFS has a much finer granularity of ACL control built in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.