[opensuse] Samba Question
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway... Is it okay to have more than one samba server in a given local network? Or put another way... Do you need a samba server on each linux machine that wants to serve shares? Responses appreciated. -- Don Henson
Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Responses appreciated.
AFAIK, yes to all the above. You would need "samba" server running on each machine which wants to provide SMB shares. You can also have more than one on a network. In fact, I have two in my office. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Responses appreciated.
You can have multiple servers on the network and any Linux box can be a server. If you're not sharing to Windows systems, you can also use NFS instead of Samba. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Responses appreciated.
You can have multiple servers on the network and any Linux box can be a server. If you're not sharing to Windows systems, you can also use NFS instead of Samba.
I'm trying to use both. I'm using NFS for certain functions that do not require Windows and would like to use Samba for those functions that do. This is doable. Right? -- Don Henson
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Donald D Henson wrote:
James Knott wrote:
Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Responses appreciated.
You can have multiple servers on the network and any Linux box can be a server. If you're not sharing to Windows systems, you can also use NFS instead of Samba.
I'm trying to use both. I'm using NFS for certain functions that do not require Windows and would like to use Samba for those functions that do. This is doable. Right?
It is doable, but my experience with mixing NFS mounts with CIFS shares was not a happy one, YMMV. In the end dropped the NFS side. If the files need to be shared by both Windows and *NIX clients I would suggest use CIFS/Samba only (at least for those files which need to shared by both). - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAklHx88ACgkQasN0sSnLmgJRJQCguY3W1HVEG+o8yEWfQy/ergVA yhwAnAyY1QX6hU5snE8jT4DMxyCXqZzD =pKPa -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
Donald D Henson wrote:
James Knott wrote:
Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Responses appreciated.
You can have multiple servers on the network and any Linux box can be a server. If you're not sharing to Windows systems, you can also use NFS instead of Samba.
I'm trying to use both. I'm using NFS for certain functions that do not require Windows and would like to use Samba for those functions that do. This is doable. Right?
It is doable, but my experience with mixing NFS mounts with CIFS shares was not a happy one, YMMV. In the end dropped the NFS side. If the files need to be shared by both Windows and *NIX clients I would suggest use CIFS/Samba only (at least for those files which need to shared by both).
What sort of problems were you having? I've had some directories shared by both methods for years and it's worked fine. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
G T Smith wrote:
It is doable, but my experience with mixing NFS mounts with CIFS shares was not a happy one, YMMV. In the end dropped the NFS side. If the files need to be shared by both Windows and *NIX clients I would suggest use CIFS/Samba only (at least for those files which need to shared by both).
What sort of problems were you having? I've had some directories shared by both methods for years and it's worked fine.
Generally you run into permissions problems unless your environment is so small that you can enforce common GID/UIDs across all platforms. But that is not specific to mixing NFS with CIFS, its mostly just a NFS problem. Other than that, the only problem with mixing is that your NFS users will occasionally create a document with the same name but different capitalization, which gives the windows users fits. For mist usage, I've found that SAMBA is plenty fast enough such that there is no advantage to running both systems on the same server. I haven't used NFS for years. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Andersen wrote:
James Knott wrote:
G T Smith wrote:
It is doable, but my experience with mixing NFS mounts with CIFS shares was not a happy one, YMMV. In the end dropped the NFS side. If the files need to be shared by both Windows and *NIX clients I would suggest use CIFS/Samba only (at least for those files which need to shared by both).
What sort of problems were you having? I've had some directories shared by both methods for years and it's worked fine.
Generally you run into permissions problems unless your environment is so small that you can enforce common GID/UIDs across all platforms. But that is not specific to mixing NFS with CIFS, its mostly just a NFS problem.
Other than that, the only problem with mixing is that your NFS users will occasionally create a document with the same name but different capitalization, which gives the windows users fits.
For mist usage, I've found that SAMBA is plenty fast enough such that there is no advantage to running both systems on the same server. I haven't used NFS for years.
It was a long time ago. IIRC The user permissions was one issue, at time I had both doze and NFS machines accessing the same areas and this did occasionally cause file locking issues (particularly with OpenOffice). The capitalisation issue is handled to some extent by name munging in Samba (though I do not remember ever testing whether this actually worked). There were also some differences in how links were handled which gave me a few problems. Windows/Samba and NFS/*Nix have somewhat different security models and doze style ACLs did not always play nicely with the NFS access at that time. Never was an enthusiast for the basic NFS security model and decided there was no real benefit in running both NFS and Samba and plenty of reasons to run only one of the two, and went with the lowest common denominator :-) . (BTW Also experimented with Mars, the Netware 3.x equivalent of Samba, but that had its own issues). - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAklIx+AACgkQasN0sSnLmgJQBQCdFBw15NiHqdTDDpcnM9Yznlsb LG8AoLpVxUXRrTxf9r7SnnRZ3XNj48Td =tNE9 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Donald D Henson wrote:
James Knott wrote:
Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Responses appreciated.
You can have multiple servers on the network and any Linux box can be a server. If you're not sharing to Windows systems, you can also use NFS instead of Samba.
I'm trying to use both. I'm using NFS for certain functions that do not require Windows and would like to use Samba for those functions that do. This is doable. Right?
Don, Did you ever get this sorted out? The big thing with multiple samba boxes to remember that (1) you can only have 1 wins server on the network, and (2) each samba box can either be a wins server or wins client, but not both. To specify a samba box as a wins server, that is controlled in your /etc/samba/smb.conf by: wins support = yes and further refined with: local master = yes os level = 69 domain master = yes preferred master = yes name resolve order = wins lmhosts bcast For a wins client, you simply eliminate the wins support parameter and define the wins server parameter so the box knows where to look for the browse list: wins server = 192.168.6.17 and to insure you browse master election comes out the way you want, set the os level lower on your clients: os level = 57 That will insure your wins clients never win the browse election. As between clients, normal election rules apply, but as long as you master always wins, you don't care about the clients. It just cuts down on chatter in the nmbd log files. Make sure you don't have a windows server that also considers itself the master. I have forgotten the exact election rules, but if you set your the os level of you master greater than 62, I believe you will always win the browse election. I know setting it at 69 does it for sure. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Donald D Henson wrote:
James Knott wrote:
Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Responses appreciated.
You can have multiple servers on the network and any Linux box can be a server. If you're not sharing to Windows systems, you can also use NFS instead of Samba.
I'm trying to use both. I'm using NFS for certain functions that do not require Windows and would like to use Samba for those functions that do. This is doable. Right?
Don,
Did you ever get this sorted out? The big thing with multiple samba boxes to remember that (1) you can only have 1 wins server on the network, and (2) each samba box can either be a wins server or wins client, but not both. To specify a samba box as a wins server, that is controlled in your /etc/samba/smb.conf by:
wins support = yes
and further refined with:
local master = yes os level = 69 domain master = yes preferred master = yes name resolve order = wins lmhosts bcast
For a wins client, you simply eliminate the wins support parameter and define the wins server parameter so the box knows where to look for the browse list:
wins server = 192.168.6.17
and to insure you browse master election comes out the way you want, set the os level lower on your clients:
os level = 57
That will insure your wins clients never win the browse election. As between clients, normal election rules apply, but as long as you master always wins, you don't care about the clients. It just cuts down on chatter in the nmbd log files.
Make sure you don't have a windows server that also considers itself the master. I have forgotten the exact election rules, but if you set your the os level of you master greater than 62, I believe you will always win the browse election. I know setting it at 69 does it for sure.
Have a look at my other post, "More Samba Help", and you can see how confused I still am. I think a simple example would help a lot. -- Don Henson
On Tuesday 16 December 2008, Donald D Henson wrote:
I can't seem to find the answer to the following question, not even in "Samba for Dummies". I guess the question is too simple. Anyway...
Is it okay to have more than one samba server in a given local network?
Yes, you can have as many as you want (if configured properly, of course).
Or put another way...
Do you need a samba server on each linux machine that wants to serve shares?
Yes, if you want to serve shares to smb clients (Linux, Wintendo or otherwise), you need to set up a samba server on that machine. HTH, Joop
participants (7)
-
David C. Rankin
-
Donald D Henson
-
G T Smith
-
James Knott
-
John Andersen
-
Joop Beris
-
Kai Ponte