We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


How to implement a second Samba server for directories only

DanRaposo asked
Medium Priority
Last Modified: 2008-02-01
I have a master Samba server which populates the smbpasswd file from the yppasswd services.  This server acts as our main file server and authentication server for our "Windows" Domain.  

 I have a second box that I would like to simply share a directory.  How do I setup the config file to authenticate using the same credentials from the original samba server?  

When I try to connect I can see it in the Browse list but I am always prompted for username/passowrd and denied.

Here is the bulk of the smb.conf file


# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = COMPANY
   netbios aliases = www
   log level = 3

# server string is the equivalent of the NT Description field
;   server string = Samba Server
   hosts allow = 192.168.0. 192.168.10. 192.168.30. 127.
   security = user
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   remote announce =
   local master = no
   name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#       Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
   wins server =
   dns proxy = no

   comment = www.company.com directory
   path = /var/www/html
   public = yes
   writable = yes
   printable = no
   create mask = 0765
Watch Question

just set the security to server and set the servername to the name of the first samba server.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


when you say to set the server name do you mean like this

security = server
password server = sambamaster

When configured like this I get

smbclient -L //www
session setup failed: NT_STATUS_LOGON_FAILURE

also, what about security = domain will that work and if so what is the key to implementing that?

when I run a test withsecurity=domain I get the follwing

 smbclient -L //www


It does seem to work with security=server like above, but why do I get the above mentioned error with the smbclient test?

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.