On Friday 04 April 2003 23:19, Tom Emerson wrote:
On Friday 04 April 2003 12:12 pm, Trey wrote:
Having problems getting samba to work so I tried the swat tool. Im running konqueror on kde3.0.5 suse8.1
When I type into my browser: http://localhost:901
I just get this error: An error occured while loading http://localhost:901: Could not connect to host localhost (port 901)
Generally "could not connect" errors mean that nobody is listening [no server process, that is] likewise
trey@linux:~> smbstatus
[...]
Failed to open byte range locking database
may also imply no server is actually running. Normally, when you boot a system you'll see a series of "services" with the words "running", "not used", "failed", or similar status words in green/red/yellow in a column to the right. [on the text console] If you've installed samba correctly, go to a shell and (as root) issue the command "rcsamba status" -- you should see output like this:
franky:/var/cache/awstats # rcsamba status Checking for SAMBA nmbd running Checking for SAMBA smbd running franky:/var/cache/awstats #
["running" is in birght green -- actually almost unreadable on my monitor, but the fact that it is in green is enough for me] If it doesn't say "running" then you need to investigate your logs [usually /var/log/samba/<filename>] or the catch-all /var/log/messages file for errors.
Your original problem, however, is with swat -- I don't know if that is started with samba or started seperately [see if you have a file called "rcswat" on your system] but either way, once it is running you should be able to "see" that it is listening with the command
netstat -an --inet
Again, you should see output like this:
franky:/var/cache/awstats # netstat -an --inet Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN tcp 0 0 192.168.40.6:139 192.168.40.2:40242 ESTABLISHED
here my system is waiting for connections on port 139 [samba] and one client is in fact connected to port 139. You should also see something with ":901" in the local address if SWAT is running Hi,
For swat to run it needs to be commented out in /etc/inetd.conf swat stream tcp nowait.400 root /usr/sbin/swat swat This will enable swat and you can use it after you do killall -HUP inet Ian -- ---------------------------------------------------- This mail has been scanned for virus by AntiVir for UNIX Copyright (C) 1994-2003 by H+BEDV Datentechnik GmbH.