How to implement a second Samba server for directories only

Posted on 2006-03-21
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 = directory
   path = /var/www/html
   public = yes
   writable = yes
   printable = no
   create mask = 0765
Question by:DanRaposo
    LVL 6

    Accepted Solution

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

    Author Comment

    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
    session setup failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO

    Author Comment

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 Specialist

    HTML5 development skills are critical to all developers. HTML5 is the foundation to almost any development process. That's why business, design studios, development shops and other organizations need HTML5 developers. Get your foot in the door as a HTML5 specialist.

    Suggested Solutions

    Title # Comments Views Activity
    Accessing elements inside an iframe 5 50
    Wordpress Changes urls 6 26
    Best IDE for PHP starters 10 63
    GPS save in database 19 19
    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now