Hello All,
I'm setting up a new file server to handle our growing image collection. This is a basic Debian virtual machine running under Centos 5.1 using the 2.6.26-2-xen-686 kernel from the Debian archive.
I've installed Samba on this server - Ric's guide turned out to be invaluable:
http://www.edugeek.net/forums/nix/69...ps-pykota.html
And this document came in handy, too:
Using Samba on Debian Linux
I bascially did the following:
All worked fine - the install procedure even asked me for a few details and did all the Kerebos config files for me, nice and easy.Code:apt-get update
apt-get upgrade
apt-get install samba smbclient winbind krb5-doc krb5-user krb5-config
Then I had to configure Samba. After a large amount of swearing and muttering, I finally have this:
So that's bascially Ric's Samba setup, minus any printer-related lines as this is a file server, and a file share definition. Now, on a windows machine I can put "\\ACSFILES005\photos" into Windows Explorer and get access to the share - but only as long as I first create a local user on the file server. So, if I'm logged in to Windows as "dhicks", I have to do something like...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"
...before I can access the share.Code:useradd dhicks -p -
This isn't really much of an issue - I can wrap a script around the "wbinfo -u" command to re-create domain users on the local machine easily enough, but is there a proper way of doing this - should Samba be able to create local accounts on demand or something? Have I missed something?
--
David Hicks

