hellp everyone,
i am running slackware 11 with samba v 3.0.23c...
lately i read about multiple configurations option and i have been meaning for a while now to find a way to set up both a users directory and a public server ... so the multiple configurations option came in handy, since one samba server would ask for authentication to log on to (the homes) and the other would not ( it would be public)..
i found some info on the matter at
http://home.arcor.de/36bit/samba.html#3.2.3
and tried to mimic it:
so i my main smb.conf:
Code:
[global]
netbios name = starpool
netbios aliases = stargaze
workgroup = SETIHOME
server string = Starpool of Goodies
hosts allow = 192.168.0. 192.168.144. 192.168.145. 127.
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.0.0/24 192.168.144.0/24 192.168.145.0/24
preferred master = yes
wins support = yes
name resolve order = wins lmhosts hosts bcast
wins proxy = yes
dns proxy = no
include = /etc/samba/smb.conf.%L
then i have smb.conf.starpool
Code:
security = share
[shares]
comment = lvmed array
path = /mnt/lvm/shares
browseable = yes
public = yes
writable = yes
[comics]
comment = Comics
path = /home/nass/funstuff/comics
public = yes
writable = no
[office projects]
comment = General Office Related Stuff for all
path = /mnt/hd/current/Office-Projects
public = no
browseable = no
writable = no
read list = @shares
[Photographs]
comment = Photos and Computer 3D images
path = /mnt/hd/current/Photographs
public = yes
writable = no
[To cd-r]
comment = Application Installation Files
path = /mnt/hd/current/tocdr
public = yes
writable = no
[videos]
comment = Photos and Computer 3D images
path = /mnt/hd/current/videos
public = yes
writable = no
[Mp3]
comment = All the mp3's
path = /mnt/hd/current/Mp3
public = yes
writable = no
[NassBook]
comment = Nass's WD book
path = /mnt/nass_WDbook
public = yes
writable = no
[WinMX]
comment = Incomings - Downloads etc. folder
path = /mnt/hd/current/winmx
writable = yes
create mask = 0775
directory mask = 0775
public = yes
force group = shares
veto files = /.ftpaccess/
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
and smb.conf.stargaze
Code:
security = user
[homes]
comment = Home Directories
browseable = no
writable = yes
[shares]
comment = lvmed array
path = /mnt/lvm/shares
browseable = yes
public = yes
writable = yes
[WinMX]
comment = Incomings - Downloads etc. folder
path = /mnt/hd/current/winmx
writable = yes
write list = @shares
public = yes
force group = shares
veto files = /.ftpaccess/
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
I made the 3 files (out of the monolithic previous smb.conf) and i restarted.... (in bold you can see the changes).
well samba seems to be starting fine...
and the 2 servers react as expected... ie the stargaze server asks for credentials when u are trying to access it... and starpool does not add for anything...
after a while though the 2 identities of the server seem to get mixed up.... so i might be trying to access the stargaze server and not only it wont ask for password but itll also show the very same shares that the starpool shows....(so f.e. no homes dir will appear..)
what is the reason for this weird behaviour?
any ideas... or some guide to a proven solution....
thnk you in advance for your help
nass