Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-25-2001, 11:43 AM   #1
LQ Newbie
Registered: Dec 2001
Location: omaha
Distribution: redhat7.2
Posts: 21

Rep: Reputation: 15
Angry bring it all together....with samba

ok, i'm new to linux and like it. sometimes. I'm a convert from windows and have become quite obcessed with linux.
i run 98 on two machines, laptop and newly built box...and linux on an old PB p1 266/64mb/3.2g - im just experimenting with linux here, but plan to run linux/smb server on the new box and network the laptop and PB, at least one will still have 98.

so, i have not been able to see anything more than teh server in my network icon on the 98 machine. i can't get into the file with out a password error. "ipc$" ???

I can't get the swat utility working either, since /etc/inetd.conf doesn't exist.

I've read many books and info on the net about smb, but am still having difficulites making sense of all this.....there isn't too much trouble shooting help in the books, they assume all works well the first time around, but no help if it doesn't.

Thanks for any insight.

Old 12-25-2001, 04:30 PM   #2
Registered: Nov 2001
Distribution: Debian
Posts: 35

Rep: Reputation: 15
Your having the same problems that I am having.
1. The docs are ancient.
2. People telling you to read the docs.
3. Every doc is for a different distro than your using.
4. No distros are set up the same.
And we wonder why linux isn't mainstream (no flames please, I am aggravated)
Old 12-25-2001, 04:47 PM   #3
LQ Newbie
Registered: Dec 2001
Location: omaha
Distribution: redhat7.2
Posts: 21

Original Poster
Rep: Reputation: 15
my first milestone with linux

ok, so now i've got webmin installed and working - since swat will not work. - but that's my only accomplishment for today.

I set up all the proper fields according to intructions, but i always get, at best : name of server in network neighborhood, but can't access any shares. no pw prompt or anything.

if i do # smbclient -L (sharename)

it says connection to (sharename) failed.?

so what should i do besides go back to windows and use peer - peer,,,,,,,naaaaaa, that wouldn't happen, i'll figure it out, but some help would be vital. - for my marriage, my stability, my ego,,,you guys get it.

fail66: you're right about this not being mainstream. It is not intuitive at all, but there is alot of potential with it if you have the time and patience, which i have neither right now.


and thanks to all those who read the strings but don't post anything. even if it is a newbie flame!
Old 12-25-2001, 08:03 PM   #4
LQ Newbie
Registered: Dec 2001
Location: Edinburgh
Distribution: Redhat 7.2
Posts: 12

Rep: Reputation: 0

I can't pretend to be an expert (only been using linux for a few months), but I've managed to get Samba and Swat (partially) working. The guide I followed was at - do a search on samba.

For information, you are right - the documentation you have is out of date. inetd has been replaced by xinetd (more secure). Xinetd has two parts - a file called /etc/xinetd.conf which refers to (the second part) a directory called /etc/xinetd.d. This directory contains a number of little files which used to be included in inetd. You should have a file in here called swat.

I hope this information helps. If not, I'll post the configuration files I use.

Last edited by silkyd; 12-25-2001 at 08:04 PM.
Old 12-25-2001, 10:27 PM   #5
Registered: Jul 2001
Location: Fort Wayne
Distribution: Redhat 9.0, Fedora2
Posts: 87

Rep: Reputation: 15
My experiance with Samba has had its ups and downs spent 2-weeks geting it to work read the online Samba manual front to back twice.
But now one year later and 93-days uptime
(would be longer if I'd leave it alone)
I'm completly happy alot of the problems I encountered were my own fault... RTFM
alot of errors are somtime's clarical somthing I spelled wrong did not put Browsable in the corect field did not set up a host file correctly forgot a dot between the IP's the above link is my bible a little outdated but if read correctly all is gold (I'm in debt to just type in an error message and walla!!
did you set up a group or user to allow browsing ???? is your security set for user, or share , or domain and last server SWAT kicked my butt till I found out via Google that a binary I installed set the htlm files in a differnt directory moved the files and BINGO
Old 12-28-2001, 06:39 AM   #6
Registered: Feb 2001
Location: Badlapur, INDIA
Distribution: debian, Slackware & Small Distros
Posts: 83

Rep: Reputation: 15
Re: my first milestone with linux

Dear All Forum Readers,
I tooooo am screwed with this samba.
I have installed it properly. I have smb.conf in /usr/local/samba/lib.
# Global parameters
workgroup = excelinux
server string = Samba Server
interfaces =
hide dot files = Yes
path = /home/public
dns proxy = No
security = share
bind interfaces only = Yes
log file = /var/log/samba/log.%m
guest account = smbuser
wins support = true
os level = 65
max log size = 50

read only = No

comment = Public
read only = No
directory mask = 0775
guest ok = Yes

comment = Data
path = /home/samba/data
read only = No
create mask = 0660
directory mask = 0770
guest ok = Yes

1) Swat dont run
2) if I start samba as ./smbd -D and then ./nmbd -D it starts well. But if I say ./smbstatus it puts this
Samba version 2.2.2
Service uid gid pid machine

No locked files

3) if I say ./smbclient -L localhost (from my linux box.) it thows
[root@rajesh lib]# ../bin/smbclient -L localhost
added interface ip= bcast= nmask=
added interface ip= bcast= nmask=
error connecting to (Connection refused)
Connection to localhost failed

My setup is like this
1) myself rajesh localhost running Linux box samba server name excelinux
2) two other machines (win-me) [YES everything wins etc. etc. etc. is set as read from all the forums and Ying Zhang's Samba Server Step by....Guide.

Can anybody be polite on me and tell me just why
1) I dont see the shares from winboxes (I just see a group excelinux...and exploring it shows on the two winboxes)

SORRY everybody.
But I have spent about a month on this and not getting any success so please please help me.(OR help me to KEEP LINUX ALIVE IN THE HEART OF ITS LOVERS)
Rajesh.(Awaiting replies)
Old 12-28-2001, 12:38 PM   #7
LQ Newbie
Registered: Dec 2001
Location: Edinburgh
Distribution: Redhat 7.2
Posts: 12

Rep: Reputation: 0

As I said, I'm no expert with Samba, but I have managed to get it running.

Not sure about all of your problems, but it took me a while to get swat to work. After that everything else seemed to fall into place.

The swat file I use in xinetd.d is:

# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no

Also check that your lmhost, host, and hosts.deny files are all ok.

What exactly is the error you get when you try to connect to Swat?
Old 12-28-2001, 08:02 PM   #8
LQ Newbie
Registered: Dec 2001
Location: omaha
Distribution: redhat7.2
Posts: 21

Original Poster
Rep: Reputation: 15
Wink samba is working!

ok. after banging my head for several days, and tossing my box against the cinder block wall a few times samba finally decided to work.

I reloaded my windows machine which I suspect was a problem since i was tampering with the registry, so starting clean helped.

equipment: Packard Bell 233/3.2gig/64mb netgear nic
Compaq Presario 1930 - laptop, 433celeron/9.5gig/192mb/3com pc card nic

Linksys etherfast cable/dsl router

I just configured the laptop with tcp/ip for connectivity, used ms login and that was it in windows.
I used webmin to setup shares on the PB and it worked, beofore all i could see at best would be the server in windows networkneighborhood...albeit unstable.

I am no master, but if anyone needs help with BASICS, i maybe able to help if you email me.
Old 12-30-2001, 07:54 PM   #9
Registered: Dec 2001
Posts: 66

Rep: Reputation: 15
I know how you all feel. Samba can be an absolute nightmare. The most important thing to remember is that if you don't have a PDC set up (if you don't know what that stands for, you don't) you need to have samba do your password authentication. There are some great posts to this effect on another samba thread:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
want to bring 2 ultra's on n/w live_dont_exist Solaris / OpenSolaris 3 06-27-2005 12:55 PM
bring up eth1 alaios Red Hat 1 06-06-2004 12:33 AM
Can't bring up Ethernet dalraidia Linux - Networking 3 02-16-2003 01:26 PM
Is someone trying to bring down UK Satellites?? raz Linux - Security 2 02-12-2002 09:27 AM
Can't bring up eth0 cyrano Linux - Networking 4 08-21-2001 10:21 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration