Proper Samba configuration

Posted on 2005-03-30
Medium Priority
Last Modified: 2010-03-18
Hi experts,  I'm trying to set up fedore using samba as a second file server on my Windows SBS2003 domain, but having little luck with it.  I've tried and attempted to do what I could find on the web, but i'm having no luck with those...mainly because someone had a problem, (much like i am) but no one responded to them.  

First question... is this possible with SBS2003 or did M$ is the culprite here?
Second question...is there some decent documentation that can walk a newbie like myself through setting up samba properly?

So essentially I want to setup a setup file server, move almost all of the departmental files to the Fedora file server and still use the active directory usernames and password that I have set up.

Any additional info that you may need, i'd be more than happy to give you.

Question by:cheeba12
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

papablo earned 500 total points
ID: 13667125
If you configure your nt as a NIS server, helps you?
I haven't tested it. yet ;-)

Assisted Solution

bmquintas earned 500 total points
ID: 13667917
For documentation follow the official howto available at www.samba.org, the chapter more apropriate to your situacion :
LVL 22

Assisted Solution

pjedmond earned 500 total points
ID: 13687080
Firstly....yes what you request is possible. SBS 2003 is capable of accepting additional Domain controllers into it's domain. The restriction that M$ places on this is that SBS 2003 can ONLY be a primary domain controller, so you'd have a few potential problems if you tried to put together multiple SBS 2003 systems into a domain.

This article is worth reading to get you up and running as a backup domain controller:



Assisted Solution

mjdme earned 500 total points
ID: 13821359

# Global parameters
       workgroup =                                                                                      whatever yours is MSHOME
       netbios name = server
       server string = Samba Server %v                     (GIVES VERSION RUNNING)
       encrypt passwords = Yes
       map to guest = Bad User
       obey pam restrictions = Yes
       pam password change = Yes
       passwd program = /usr/bin/passwd %u
       passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
       username map = /etc/samba/smbusers                     (need for valid users)
       password level = 1
       username level = 8
       unix password sync = Yes
       log level = 3
       log file = /var/log/samba/log.%m
       max log size = 50
       name resolve order = lmhosts bcast
       socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
       printcap name = cups
       domain admin group = root @adm
       domain guest group = nobody @guest
       add user script = /usr/sbin/useradd -s /bin/false %u
       logon script = %U.bat
       logon path = \\%L\Profiles\%U                     (MUST CHANGE TO THE NT PATH)
       logon home = \\%L\%U\.profile                    (MUST CHANGE TO THE NT PATH)
       domain logons = Yes
       os level = 99
       preferred master =      can be Yes if u want server(linux box) to be master or no if u want the XP box to be master
       domain master =      same as above
       dns proxy = No
       message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
       winbind uid = 10000-20000
       winbind gid = 10000-20000
       template shell = /bin/bash
       comment = Home Directories
       valid users = fred,ethel,barney       (need to say who is allowed,could also be ip#'s)
       read only = No

       comment = Root
       path = /
       guest account =

       comment = Directory for Netlogons and Profiles
       path = /logons
       guest account =
       valid users = same as above
       read only = No

       comment = Documents
       path = /documents
       guest account =
       valid users =                     same as above
       read only = No

       comment = Downloaded files
       path = /downloads
       guest account =
       valid users =                     SAME AS ABOVE
       read only = No

You also need to edit the lmhosts file to reflect the ip numbers and corresponding names to those logging on
the xp box and the linux box should be the same workgroup as you have MSHOME

uncomment the following

;     encrypt passwords = Yes
;     obey pam restrictions = Yes
;     pam password change = Yes
;     passwd program = /usr/bin/passwd %u
;     passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
;     unix password sync = Yes
   log file = /var/log/samba/%m.log
   max log size = 0
;     socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

Make sure you run smbpasswd -u (name of user) in terminal as super user (su) for each user who is going to access the server.

make sure smb.conf file is setup correctly

when connecting from your workstation u must use root and root password to auth.

edit your registry


also edit host and host allow file in samba and etc dir

smbpasswd -a (usersname)

Featured Post

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

752 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