[Webinar] Streamline your web hosting managementRegister Today


Linux Samba Server -- HELLLLLLLLPPPPPPPP!!!!!!!!

Posted on 2004-08-01
Medium Priority
Last Modified: 2010-03-18
I am looking for step-by-step instructions on setting up a Linux SAMBA server.  I am currently attempting my setup with RedHat 9.0 and samba-latest.tar.gz.  I have been using a step-bt-step guide by Ying Zhang, but it is for a different (older) version of Linux and an older version of the Samba Server package.  Any help would be greatly appreciate. Also, I am attempting to have it connect to my Windows 2000 Adv. Server Domain Controller.  Thanks  
Question by:jneely
  • 5
  • 3

Expert Comment

ID: 11687739
You are going about it the hard way :-)

Included with the RedHat distribution there are several smaba-related packages. The ones you will want to install are:


This will give you everything you need to turn your linux box into a smb/cifs file server.

If you want to set it up to use the w2k server you mentioned you need to provide some more info. (what domain-type, do you want useraccounts from the domain server)

On the other hand if all you want to do is to use a share from the domain server, just use:
mount -t smb //server/share /mnt/here

You might need to pass along options, like usernames and passwords:

mount -t smb -o username=dinges,password=intheclear ...

There are loads more options, but figuring those out I leave up to you:

man smbmount

Author Comment

ID: 11691419
Here is some more info....  I am relatively new to the Linux OS.  I am very aware of the exciting capabilities that Linux has to offer, including the samba services.  The small network I am attempting to create includes Windows 2000 Adv server as a domain controller, with Win2k Pro, Win 98, and Win NT as clients.  My goal is to have the clients authenticated to the nework through the 2000 server.  All I want the Linux samba server to do is be a file server to the 2000 server clients. Now this may sound stupid, and extremely noob of me, but the #mount command says to me Linux.  The 'mount -t smb -o.......' that you mentioned; is this command to be used on the Linux machine or the Windows server clients?  Another noob commentn....In the fourtyseven times I have installed Linux this past week, I don't recall seeing the individual packages that I need to install.  I have seen some packages that have the word Samba in them, but during the install, I haven't actually seen the individual packages, samba, samba-server, or samba-client.  Are these packages all grouped into one, or are they individual packages that I need to install seperately.  I am simply looking for a brief step-by-step, i.e.  install Linux, be sure to install these packages, create an account that matches one of your windows 2000 client accounts, use this command, on Linux, to mount the share, use this command, on windows, to access the share, blah, blah, blah.  Thanks for your help.  Seriously...thank you.

Accepted Solution

de2Zotjes earned 2000 total points
ID: 11694897
The 'mount -t smb -o.......' that you mentioned; is this command to be used on the Linux machine or the Windows server clients?

This mount command would be run on a linux box

a brief step-by-step
OK, here goes:

install RedHat9
login as root
(if graphical: open an xterm)
everything below is presumed to be done from a command prompt
check to see if you have the packages you need:

rpm -q -a|grep samba

Output should be (at least) 3 packages:

configure samba. this means editing the file: /etc/samba/smb.conf
The following items are important for your setup:
 winbind separator = +
 winbind cache time = 10
 winbind uid = 10000-20000
 winbind gid = 10000-20000
 winbind use default domain = yes
 workgroup = <your windows domain>
 security = domain
 password server = <your PDC(netbios name)>
 local master = no
; os level = 33
; domain master = yes
; preferred master = yes
; make sure above items are commented out!

[<your share>]
 comment = File share
 browsable = yes
 writable = yes
 guest ok = yes
 directory mask = 0775
 force directory mode = 0775
 create mask = 0664
 force create mode = 0664
 force group = <optional!>
 force user = <optional!>

test the config:

testparm -x

add the linux to the domain:

smbpasswd -j <your windows domain>

start samba: service smb start

Try to connect a share...

Jump for Joy :)
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 11694954
I think that this might just do it for me.  I will give this a try when I get home tonight.  Thank you so much for your help.  I will let you know how it goes.  Thanks again.

Author Comment

ID: 11716536
Alright, everything is going great with the setup.  I followed your directions.  All Samba services are installed, the services are starting up and all that.  I made the changes to the /etc/samba/smb.conf file, and ran testparm -x.  Everything is good with the file except I get a message that says, "winbind separator = + might create some problems."  Secondly, I can't seem to connect to my Window 2000 Domain Controller, with the samba machine.  Here is the network config for both machines, (Win2k & Samba machines).

WIN2k - FQDN = dc1.techfair.com
            Netbios name = TECHFAIR
            IP address =
            SNM =
            Default Gateway =
            DNS =

Samba - Name = SambaSrvr
            IP address =
            SNM =
            Default Gateway =

I can ping the Win2k machine from the Samba machine and visa versa.  I think somewhere my name resolution is failing.  Am I forgetting to set something up on either machine?

Progress....I'm making progress.


Author Comment

ID: 11716554
Also, I cannot see the Samba server in 'Network Neighborhood'.

Author Comment

ID: 11716580
When I say that I am having problems connecting I mean that the,
#smbpasswd -j techfair.com, is failing to find the DC for the specified domain.

Expert Comment

ID: 11720707
Well, the step you are having problems with is sort of essential :-(

First: the config and setup that I show here are for classic domains!! So not for AD-domains!! Integrating samba/linux into AD is not a trivial task.

In case you are using classic domains:

If you think you have some sort of name resolution problem try the following:

nmblookup -M -- -
the output of this command should tell you whether there is a so called masterbrowser on your local subnet. (you need one and it should be there)

nmblookup TECHFAIR
the output for this command should be a list of all the netbios names that techfair is responsible for: it's own name and the domain name

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…

640 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