?
Solved

How to implement a second Samba server for directories only

Posted on 2006-03-21
3
Medium Priority
?
1,404 Views
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


[global]

# 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 = 192.168.0.255 192.168.10.255 192.168.30.255
   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 = 192.168.0.7
   dns proxy = no

[www]
   comment = www.company.com directory
   path = /var/www/html
   public = yes
   writable = yes
   printable = no
   create mask = 0765
0
Comment
Question by:DanRaposo
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
liviutudor earned 2000 total points
ID: 16249543
just set the security to server and set the servername to the name of the first samba server.
0
 

Author Comment

by:DanRaposo
ID: 16249648
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
Password:
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
Password:
session setup failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
0
 

Author Comment

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


0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ready to get certified? Check out some courses that help you prepare for third-party exams.
Over time, the online landscape has altered considerably, but that’s nothing compared to the up-and-coming trends that will shape the web design industry in the coming year. Keep reading to find out which trends will shape B2B web design in 2018.
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…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

755 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