A.1 Samba in a Workgroup

   

If your network is configured as a workgroup, adding a Samba server is pretty simple. Samba even lets you add features, such as user -level security and WINS, that would normally require an expensive Windows NT/2000 Server.

A.1.1 Authentication and WINS Server

In a workgroup environment, Samba can be set up with share-level security and without offering WINS name service. This works and is simple, but we generally recommend that user-level security be enabled to allow Windows 95/98/Me systems to make use of it. Also, it only takes a single parameter to enable Samba as a WINS server, resulting in far better network efficiency. Here is the configuration file that does it:

 [global]     # replace "toltec" with your system's hostname     netbios name = toltec     # replace "METRAN" with the name of your workgroup     workgroup = METRAN     security = user     encrypt passwords = yes     # Run a WINS server     wins support = yes     # The following three lines ensure that the Samba     # server will maintain the role of master browser.     # Make sure no other Samba server has its OS level     # set higher than it is here.     local master = yes     preferred master = yes     os level = 65 # Make home directories on the server available to users. [homes]     comment = %u's Home Directory     browsable = no     read only = no     map archive = yes # This is a shared directory, accessible by all # users. Use your own share name and path. [d]     path = /d     create mask = 0700     read only = no 

Generally, you will use a configuration file similar to this one when adding your first Samba server to the workgroup.

A.1.2 Workgroup Server

Things are a little different if another system ”either a Samba server or Windows NT/2000 server ”is already handling WINS and/or authentication. In this case, Samba is configured to use that server for WINS. Here is a configuration file that does this:

 [global]     # replace "mixtec" with your system's hostname     netbios name = mixtec     # replace "METRAN" with your workgroup name     workgroup = METRAN     security = user     encrypt passwords = yes     # Replace "172.16.1.1" with the IP address     # of your WINS server. If there is none,     # omit this line.     wins server = 172.16.1.1     # The OS level is set to 17 to allow     # this system to win over all Windows     # versions, but not the Samba server      # that uses the configuration file     # in the previous section.     os level = 17 [homes]     comment = %u's Home Directory     browsable = no     read only = no # This is a shared directory, accessible by all # users. Use your own share name and path. [d]     path = /d     create mask = 0700     read only = no 

Once you have a server in your workgroup handling authentication and WINS, this is the configuration file to use when adding additional Samba servers to the workgroup.

   


Using Samba
Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition
ISBN: 0596007698
EAN: 2147483647
Year: 2003
Pages: 475

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net