From
http://ccfaq.valar.co.uk/modules.php...rticle&sid=155
If you've got an NT/2000 Domain you can configure Samba to use your NT usernames and passwords to connect to shares on your Linux machine.
To configure Samba to use NT Domain authentication, follow these steps:
1. Give you linux machine a netbios name in the file /etc/samba/smb.conf. This is defined in the line that starts netbios name =
2. In Server Manager on NT, add your linux computer to the domain using it's netbios name
3. Stop all Samba daemons on your linux box and issue the following command:
smbpasswd -j MYDOMAIN -r DOMAINPDC
You should replace MYDOMAIN and DOMAINPDC with the appropriate info
You should get a response similar to:
2002/11/19 22:09:38 : change_trust_account_password: Changed password for domain MYDOMAIN.
Joined domain MYDOMAIN.
4. Add/change the following lines to the global section of your smb.conf:
security=mydomain
workgroup=mydomain
encrypt passwords=yes
password server=DOMPDC
5. Your linux server is now configured to use NT Domain credentials to allow/deny access to shares, but you'll need to specify who get's access first. To create a share add the following lines:
[mysharedfolder]
comment = my shared folder
path = /home/somewhere
writable = yes
public = yes
printable = no
admin users = Comma Separated NTUser List
write list = Comma Separated NTUser List
read list = Comma Separated NTUser List
6. If you want to amend an existing share just add the admin users=/write list=/read list= line(s) to the share definition
7. Finally, start samba up again.
It should be noted that user's specified in the admin users directive will do all file operations as root.