Create configuration files – Using Debian in an Active Directory environment
All of the Samba configuration files are in the /etc/samba folder. I recommend reading them as a learning experience, but to create your own files from scratch.
move the original files somewhere:
mkdir /etc/samba/vanillaconf
mv /etc/samba/* /etc/samba/vanillaconf/
create your own /etc/samba/smb.conf: Make sure that the domain and realm fields are all caps.
nano /etc/samba/smb.conf
#/etc/samba/smb.cnf
[global]
workgroup = ((DOMAIN))
server string = %h server
wins support = no
socket options = TCP_NODELAY
large readwrite = no
log level = 1
log file = /var/log/samba/samba.%m.log
security = ads
realm = ((DOMAIN)).COM
encrypt passwords = yes
obey pam restrictions = yes
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
template shell = /bin/bash
idmap uid = 10000-20000
idmap gid = 10000-20000
This page is part of a series named “Using Debian in an Active Directory environment”. It is meant to be followed in that context.

No comments yet.