Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba: Problem with Installation 3

Status
Not open for further replies.

gwinn7

Programmer
Feb 10, 2001
1,004
US
Your patience is required, I am very new to Linux.

Here is the issue...

I am having trouble properly setting up my Samba system. The system has Red Hat 7.1. During the installation, I selected the Samba package as well as other custom installation options (ie. workstation).

After installing Red Hat, Samba does not appear to be on the system. According to the "Using Samba" book (Oreilly), it says the folders for its installation are located in /usr/local/samba folder. However, these folders do not exist on the machine. I did check the browser for the SWAT using option, but it said that the host was unavailable or too busy.

When I run "smbstatus", it only gives an error. If you want the error message, I can provide it in a later response.

I thought I had followed the proper procedure, but I don't know what I did wrong. Can anyone offer a procedure to go through, or insight into what I missed?

Thanks,
Gary
gwinn7
 
Try this to see if it installed:

[bruceg@linux bruceg]$ rpm -qa|grep samba
samba-common-2.2.2-1
samba-2.2.2-1
samba-swat-2.2.2-1
samba-client-2.2.2-1


If you don't have something similar, grab your distro's CD, and:

rpm -ivh samba*.rpm

Bruce Garlock
bruceg@tiac.net
 
Yes, those files are listed, except the version I installed with my copy of Red Hat was 2.0.7-36.

I know its a much older version, but I would think it would work if it shipped with Red Hat.

Anything else I can do? Like I said, the typical installation folders aren't even there (ie. /usr/local/samba etc).

???

Gary
gwinn7
 
Perhaps, I setup my network configuration incorrectly?

Gary
gwinn7
 
Gary,

I had the same problem. I was using that book while I was trying to learn more about Red Hat.

With 7.1, the correct directory is../etc/samba. Within is the smb.conf file that you will need to manipulate for your network.

 
For directories of where things are installed to, try this:

rpm -ql samba
rpm -ql samba-common
rpm -ql samba-client

you might pipe those to 'less', so you can see everything. Bruce Garlock
bruceg@tiac.net
 
Thank you. I will try these suggestions. I will let you know as soon as do.

FYI: I did check the /etc/samba folder; no dice. The folder structure was not there as well.

Gary
gwinn7
 
Hi,











On Redhat the Samba directories are a bit different. The config is here :











/etc/samba/smb.conf











You can control the server via the sysv init script ('su' to root first)











/etc/rc.d/init.d/smb start





/etc/rc.d/init.d/smb stop





/etc/rc.d/init.d/smb restart





/etc/rc.d/init.d/smb reload (i.e. to reload the config file)










Most (all ?) of the samba binaries are actually put into /usr/bin . For example :











/usr/bin/smbpasswd





/usr/bin/smbclient





etc.











For swat you need two things











(i) install the samba-swat rpm (rpm -q samba-swat)





(ii) activate under xinetd as root with the command :











/sbin/chkconfig swat on











Then you can goto to and login as root . By default this only works from the linux machine itself. If you want to use swat over the network you have to edit /etc/xinetd.d/swat and alter the line that says











only_from = localhost











to something like :










only_from = 127.0.0.1 192.168.0.0











(where 192.168.0.0 is your local subnet - change as appropriate)











Hope this helps
 
Thanks again. I am going into the office to try these items this morning.

I will be posting another response before 10am EST.

Gary
gwinn7
 
Ok, Bgarlock and Ifincham:

#1 I tried the suggestd commands...

"rpm -ql samba" resulted with a list of files installed to the "/usr/share/doc.." and "/usr/share/man..." folders.

"rpm -ql samba-client" resulted with a list of files installed to "/usr/bin.." and "/usr/share/man.."

"rpm -ql samba-common" resulted with a list of files installed to "/etc/samba/codepages" and "/usr/bin.." and "/usr/share/man/..."

Conclusion: Most components appear to be installed. It seems to have most of the "smb" commands. Unfortunately, this is not at all how the installation folder structure was supposed to appear.

#2 Tried: "etc/rc.d/init.d/smb start" and received the following message...

"bash: smb: command not found"

However, I can see the "smb" file when I perform a directory listing. Wierd!!!

#3 Ok, now we are getting somewhere!! I tried "/sbin/chkconfig swat on". Then, I opened Netscape and tried the " and it worked! I was able to get into the Samba configurator. Thank you. However, still wondering why I can't invoke the smb commands.

Any further wisdom or comments? I will try to work from here, but any further comments are appreciated. Thank you again for the help thusfar.

Gary
gwinn7
 
More information:

When I checked the Server Status in the swat configurator, it says that both smbd and nmbd are not started. I tried to start them, but it failed to work.

Gary
gwinn7
 
Here's your best bet. Uninstall Samba and download the latest version in .rpm format from or rpmfind.net. Uninstall samba with these commands...

rpm -e samba-common
rpm -e samba-client
rpm -e samba

Next install the rpm that you downloaded like this...

rpm -ivh filename.rpm

You can start Samba on Red Hat with this command...

service smb start

To check to make sure that its running use...

ps ax | grep smb -or-
ps -A | grep smb

To make Samba start automatically at boot-up...

ntsysv - look for Samba and check it off

From here, all you have to do is edit the /etc/samba/smb.conf file and then restart teh samba service with...

service smb restart

Hope this helps,
ChrisP
 
Thanks, I will give this a shot and let you know.

Gary
gwinn7
 
PERFECT!!!!

Fluid11, THANK YOU!! Thanks to you and all contributors, I am now out of my Samba/Linux problems for now. Now all I need to do is to get this machine browsable with the Windows 2000 domain controller.

A thousand thanks!!

Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top