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.
I'm running a Redhat 8.0 system with samba 2.2.7
I believe I have it correctly configured with winbind to authenticate users against a NT4 style domain (Active Directory in Mixed mode).
When I run the wbinfo -u, wbinfo -g they return with users and groups.
I just don’t know the correct way to create a directory on the Linux server with the correct permissions gid's & uid's so that I can configure them as samba shares.
If I create a directory off of / …. let say /testing….. what should the permissions be set to? What owner & group should it be in??
The unix file/folder owner and group should be the same as the unix user that the samba user is connecting as. So if you have unix user "pat" and smb user "pat" the owner would be "pat".
Pat, the Windows users and groups are dynamically added to the passwd and group file (it's been a while since I messed with this). You should be able to assign permissions just like a normal Unix user:
chown someuser somefile
Did you compile Samba with ACL support? Are you using a file system with ACL support?
I'm not sure the users are being dynamically added at this point. I think I need something configured in the smb.conf file to auto-add the users, but I'm not sure.
I installed a Samba.rpm ver 2.2.7-security-rollup-fix
I gues what I would realy like is sample of a working smb.conf file for security=domain.
Of course I would expect any site specific info be made generic like
workgroup = <MY workgroup> and be commented out.
I can report some success. I can now log into the console of the samba server using a NT domain account. I get an error about it not having a home directory, but I can figure that one out.
I think it has something to do with the /etc/pam.d/samba file. Can someone post a working version of that file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.