SlackwareThis Forum is for the discussion of Slackware Linux.
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.
My home network looks like this -
Linksys wrt54GL with HyperWRT +tofu firmware.
4 personal use PCs all Linux, distros vary. 1 Slackware file server. Everything's wired, no wireless connections.
I have no issue creating a shared NFS folder across the network, and mounting, reading, writing to the share. What I want to do is restrict read/write access to some of the folders.
Each PC has 1 unique user + root. I'd like help with the following.
On <NFS>
/NFS - rw all
/NFS/A - rw user01 ro others
/NFS/B - rw user01,02 ro others
/NFS/C - rw user01,03 ro others
and so on.
At first I thought an /etc/exports something like this would work, but of course I'm wrong. I'm assuming the permission are being inherited from the top dir?
Something like this (with paths modified) is roughly what you want, I think.
This setup allows only 192.168.13.50 to have write access (even as root), and that's secure enough for me, as the only way to get on my wireless segment is with WPA - everything else is wired.
What happens, is what ever I decide for /NFS is passed on to the sub dirs. If /NFS is rw, all users have rw to the sub dirs. If I pass ro for /NFS and rw for /NFS/01, /NFS/01 is still ro .
What happens, is what ever I decide for /NFS is passed on to the sub dirs. If /NFS is rw, all users have rw to the sub dirs. If I pass ro for /NFS and rw for /NFS/01, /NFS/01 is still ro .
On <NFS> I did /etc/rc.d/rc.nfsd restart after each export change.
On the remote PC I went as far as stopping rc.rpc, unmounting the share, logging out of KDE, then starting rc.rpc and mounting the share.
Played around with no_subtree_check, and no_hide options. I'm using Slackware-12.1RC1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.