We are using RedHat 7.2 with Samba 2.2.0.
I am looking for a way to authenticate users to existing NT accounts (NT 4.0) for the purpose of setting file permissions on the Linux box. i am looking for What is the easiest way (that works) to do this.
Thanks in advance.
Dan
assuming you already joined the nt domain, try using the smbusers file, with it you can map nt acounts to the linux acounts
i needed only two linux acounts for my purposes, so my smbusers looks like this:
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator
proto = lacix elenka tomas
read = jana eva inter
then edit the smb.conf file, in the global section add:
username map = <path>/smbusers
I would set Samba to authenticate users against your NT domain controller. This would only require you to have matching users in the /etc/passwd file. These users don't need passwords, however, just accounts on the Linux box.
Create a computer account in the domain for the Linux box. Then join the domain with this command...
smbpasswd -j 'domain' -r 'netbios_name_of_pdc'
Your smb.conf file should look something like this...
[Global]
wins server = '1.2.3.4'
name resolve order = lmhosts wins hosts bcast
workgroup = 'workgroup'
server string = 'servername'
netbios name = 'servername'
security = domain
password server = 'pdc'
encrypt passwords = yes
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.