LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-12-2008, 06:52 PM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
samba with mulriple configurations not working as expected


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
 
Old 12-13-2008, 04:30 AM   #2
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
well apparently reading through samba documentation some more,
i also need to add
Code:
smb port = 139
in my main smb.conf file...

so it seems to be running fine so far and i can access both servers as expected from my winxp machine.

however, i also have a laptop running fedora 9... through that i use smb4k to usually access my shares on the server..
apparently, the smb4k application is unable to access the virtual server.. ie the one that is listed under 'netbios aliases'
in my case thats the 'starpool' server.
the 'stargaze' server on the other hand is accessed (after asking for a password of course cause stargaze has security = user) perfectly fine...

any clues as to how i can get this working?
thank you for your help
nass
 
Old 12-13-2008, 08:03 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Are you running a firewall on the samba server? if so, turn it off to check and see if this is causing problems with accessing the server.

Also samba uses udp ports, 137 138 139 445
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ln command not working as expected walterbyrd Linux - Software 3 01-04-2008 01:51 PM
Umount not working as expected hexalite2k5 Red Hat 0 09-09-2007 11:51 AM
S_ISDIR not working as expected. what is going on? zeppelin Programming 8 04-19-2007 10:21 AM
Crontab not working as expected nro Linux - Newbie 7 08-29-2005 12:56 PM
up2date not working as expected johnny13 Linux - Newbie 7 07-21-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration