Right, just to summarise with a (hopefully) correct solution for anyone coming accross this in the future, or from a Google search or whatever: To set up a Samba file server from scratch, first install your favourite Linux distribution (I used Debian and the 2.6.26-2-xen-686 kernel as I'm running a virtual machine). Then install Samba:
Code:
apt-get update
apt-get upgrade
apt-get install samba smbclient winbind krb5-doc krb5-user krb5-config
I found that the above went through the Kerebos setup automatically for me, I just had to provide the domain name (in full, and all in upper case, e.g. "CONVENT.ALTONCONVENT.ORG.UK") and name of the domain controller ("ACSDC001").
Configure Samba, with a single file share called "photos", by editing /etc/samba/smb/conf:
Code:
[global]
server string = ACSFILES005
idmap gid = 10000-20000
obey pam restrictions = yes
dns proxy = no
netbios name = ACSFILES005
invalid users = root
idmap uid = 10000-20000
workgroup = CONVENT
os level = 20
security = ads
max log size = 1000
winbind separator = +
socket options = TCP_NODELAY
wins server = 10.0.0.64
encrypt passwords = true
public = yes
realm = CONVENT.ALTONCONVENT.ORG.UK
winbind use default domain = yes
wins proxy = no
winbind enum users = yes
password server = *
winbind gid = 10000-20000
winbind enum groups = yes
preferred master = no
log level = 3
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
[photos]
comment = photos
path = /data/photos
read only = no
inherit acls = yes
inherit permissions = yes
create mask = 700
directory mask = 700
valid users = @"CONVENT+Domain Users"
admin users = @"CONVENT+Domain Admins"
Add, or more likely change, some lines in /etc/nsswitch.conf to read:
Code:
passwd: files winbind
group: files winbind
shadow: files winbind
Then join your Linux machine to your Windows domain:
Code:
net ads join -U administrator
Doing:
Should show you a list of domain users, and domain users (and only domain users) should be able to get to your file share.
The above information is merely a cut down version of that provided by Ric and Webman, I'm just putting it here again to stop anyone blundering in via Google and trying to copy the wrong setup from above and spending a couple of days trying to figure out why their server isn't working.
--
David Hicks