Samba AD authentication grants access for all the users
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Indeed but the problem is that the configuration is 100 similar on all servers. The only diffrence between them is the server name and the share names. I did just a copy and past then changed the server name and shars befor joining AD.
I noticed that i can authenticate with user_2 credentials to access folder_1 wich belongs to user_1. I tried to put a wrong password to test if samba is realy asking AD for autorisation or not and it works perfectly.
It sounds like the there is a list of users for the share, not a single user - or an accidental group account.
By default most linux systems will create a user with automatic group membership with the same name... So an unintended "@username" would become a group reference; and if that "username" group had more than one entry then two (or more) users would be granted access.
Now it would look like having to verify that the user maps (or identification) on the server matches the others... It wouldn't help to have the two users with the UIDs for instance.
If the two users on the server have the same UID, then the mapping of the remote user would get the same access rights, no matter what the configuration was.
I will admit, it has been a while since I've done any Samba support, but something is causing the two users to get the same access rights.
The users in fact are 5. They have been created on the DC and have different username and password and the problem is that user1 can access to folder5 wich belongs to user5 and user2 can access to folder1 and folder2 ...
for me, ther is a cross credential, i mean if userX is authenticated than he is free to brows all the the other protected 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.