Solved

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

Posted on 2004-08-01
8
318 Views
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  
0
Comment
Question by:jneely
  • 5
  • 3
8 Comments
 
LVL 6

Expert Comment

by:de2Zotjes
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:

samba
samba-server
samba-client

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
0
 

Author Comment

by:jneely
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.
0
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 500 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:
samba-common
samba
samba-client

configure samba. this means editing the file: /etc/samba/smb.conf
The following items are important for your setup:
[global]
 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
 path=</your/favorite/path>
 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 :)
0
 

Author Comment

by:jneely
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.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:jneely
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 = 192.168.0.201
            SNM = 255.255.255.0
            Default Gateway = 192.168.0.1
            DNS = 192.168.0.201

Samba - Name = SambaSrvr
            IP address = 192.168.0.202
            SNM = 255.255.255.0
            Default Gateway = 192.168.0.1

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.

Thanks
0
 

Author Comment

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

Author Comment

by:jneely
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.
0
 
LVL 6

Expert Comment

by:de2Zotjes
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
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

13 Experts available now in Live!

Get 1:1 Help Now