"rwx" and "valid users" - which one has precedence?
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.
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Rep:
"rwx" and "valid users" - which one has precedence?
Howdy~
Here is the situation, let say i have Dept. A and Dept. B, both are mutually exclusive.
I have 2 share directories (share-A and share-B) for each Dept. and users from grp-A should not have access to share-B and vice versa, but my boss wants access to both of the shares...
Here is what i did, might be a bit silly cos i'm kinda new to Linux
for your valid users list you need to be sure all of the group-a and group-b users are setup in their own actual group. Also, be sure to adduser for your boss and also smbpasswd -a boss to set his samba password up.
valid users = @groupa boss
and
valid users = @groupb boss
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Original Poster
Rep:
I think thats what i did...
What about the share directory's access permission and ownership?
Like i said, my boss cannot enter either directory because he belongs to a different group...
I set both shares to 770... my boss belongs to the admin group, which means *others*, if *others* is 0, does the *valid users* still work?
Can you just add your boss to a second group (and maybe a third) so that he can access the stuff as a group member? Otherwise the Linux permissions will win I think. Try looking into making 'boss' a member of a couple groups.
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Original Poster
Rep:
Yup, I think i get what you mean... hmm... your workaround might be safer than mine
I set the shares to 775 and it works but it will get messy a bit when i have more folders...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.