Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba with NT authentication

Status
Not open for further replies.

dan

MIS
Oct 7, 1998
298
US
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

hope that helps
 
What security level do you use in the samba.conf?
Server; User; Domain?
Thanks in advance.
 
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


ChrisP
MCSE (2K/NT4), CNE (NW5), CCNA, Linux+, Server+, i-Net+, Network+, A+, CIWA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top