Click to See Complete Forum and Search --> : a cry for help to the samba/swat guru


Mike hunt
02-05-2001, 08:35 AM
I'm still new to linux, Trying to add linux to my home network. It hasnt been fun so far. I'm having problems with samba/swat or myabe my RedHat is just shot to sheeit. Reason I say that is because the first time i installed samba I just installed from redhat cd2.. right from the RPM file, That went smooth, I had samba installed ok but not really working with nt yet. anyway I wound up re-installing RH, When I tried to re-install samba it seemed like the rpm was broken, I couldnt install any rpms! when I clicked install nothing would happen. Ok so I un-tarred the .gz file and started from there, I went through the whole configure/make/make install thing (followed the NHF) that went ok too, but now I couldnt start samba from the terminal where I used to just type "samba start" and It would start. So I tried to set up swat (as instructed from the NHF) no good, GRRR I edited the services file, hosts.alllow, inetd config everything as explained in the NHF!! , when I tried to connect to swat via netscape http://localhost:901 or my IP :901 I would get "network error,connection reset by peer or the server may be busy or not accepting connections, or broken pipes, all kinds of weird ****. Well from all this blabering if anyobdy has a clue of what i did wrong etc.. PLEASE < FOR THE LOVE OF GOD HELP ME.

if someone could also email me a copy of their services,hosts allow,hosts deny,inetd all those files that swat needs in notepad or word or something that I could compare I would be sooo greatfull.

Thanks
MIKE

I cant get out of these windows Jguyon@chilpart.com

sans-hubris
02-05-2001, 09:39 AM
[Note: these are not the complete files, just the parts I think are relevant, and that my system's Debian]
inetd.conf:

#:OTHER: Other services
#<off># netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
#<off># netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd -a
#<off># swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat

services:

netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp
swat 901/tcp # Samba configuration tool

I highly doubt that any of those other files have anything to do with it.

I will come back to this topic, I have a few things to do right now and no time, sorry.

[ 05 February 2001: Message edited by: ndogg ]

Mike hunt
02-05-2001, 09:45 AM
I shall wait for your return

jenbass
02-05-2001, 10:12 AM
There was a thread on Samba sometime in the last few weeks, and someone posted up a link to the free O'Reilly download of their Using Samba book. It is completely excellent and may help. Here it is:
http://www.oreilly.com/catalog/samba/chapter/book/indexpdf.html

NeoFax
02-05-2001, 10:33 AM
It is easier for newbies to learn to use init scripts to run Samab instead of straight from inetd. In a term program type ntsysv you should now see a list of daemons that you can start on startup. If you installed Samba using redhats rpm it should be listed here, just check it and it will start at next bootup or change in runlevel. Now for swat. You should add the lines swat tcp 401 or some such to your /etc/services and /etc/inetd.conf files. (I can't recall exactly but it should be in the NHF). Now you should be able to do ps -ax | grep inetd and get the pid number. Now do kill -HUP <PID number>. This should restart your inetd services. Now in your favorite web browser try opening http://localhost. If you get a web page back Apache or another web server is correctly setup. If not you should check and see if a web server is started on boot up. If not do the ntsysv thing again and select Apache. If it is not there install the rpms. After it is setup to boot on startup do this in a term program runlevel = 3 then runlevel = 5. This should restart Apache and Samba. Now again in your web browser type http://localhost. You should now see a welcome page to your server. Now type http://localhost:901 and login to swat. Good luck. If you still have any questions please email me.

teeitup
02-05-2001, 01:56 PM
Borrowed from Craig McPherson...
http://samba.he.net/

1. Visit this book.
2. Print out this book.
3. Punch holes in this book.
4. Put this book in a binder.
5. Read your binder.

You'll be glad you did!
A good book for free, what a deal.
:)