LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba swat won't load (https://www.linuxquestions.org/questions/linux-newbie-8/samba-swat-wont-load-718613/)

john test 04-12-2009 11:14 AM

samba swat won't load
 
I execute:
Code:

$ firefox localhost:901
and it fails to connect
if I do:
Code:

$ firefox localhost:631
the CUPS page comes up.

is there something I need to do in smb.conf to enable SWAT?

repo 04-12-2009 11:22 AM

is the service listening on port 901 ?
Did you open the port in your firewall?

john test 04-12-2009 11:54 AM

Had Ubuntu 7.04 == Samba was installed but did not work -- That said firefox localhost:901 used to work.
Dumped 7.04 and loaded ubuntu 8.04 and then loaded Samba. Samba now works nicely, but firefox localhost:901 fails.

I'm a newbie and the firewall is as it installed several hours ago.

How would I go about discovering if Samba/SWAT is listening on port 901?

Thanks for your help!

repo 04-12-2009 12:16 PM

Code:

netstat -ltnup
or
Code:

lsof -i4 | grep LISTEN
or
Code:

telnet 127.0.0.1 901

michaelk 04-12-2009 12:19 PM

In a nutshell swat is a web server application to setup the smb.conf file and it runs from xinetd. You need to verify if swat is installed, configured and if xinted has been started.

There is lots and lots of information on the web about samba and swat.
https://help.ubuntu.com/community/Swat

john test 04-12-2009 12:33 PM

Thanks for the help the results you requested are below

]code]
# telnet 127.0.0.1 901
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused


# lsof -i4 | grep LISTEN
cupsd 4898 root 3u IPv4 21358 TCP localhost:ipp (LISTEN)
smbd 4955 root 19u IPv4 12998 TCP *:microsoft-ds (LISTEN)
smbd 4955 root 20u IPv4 12999 TCP *:netbios-ssn (LISTEN)


# netstat -ltnup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 4955/smbd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4898/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 4955/smbd
tcp6 0 0 :::22 :::* LISTEN 4838/sshd
udp 0 0 192.168.1.125:137 0.0.0.0:* 4953/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 4953/nmbd
udp 0 0 192.168.1.125:138 0.0.0.0:* 4953/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 4953/nmbd
udp 0 0 0.0.0.0:55384 0.0.0.0:* 4859/avahi-daemon:
udp 0 0 0.0.0.0:5353 0.0.0.0:* 4859/avahi-daemon:
[/code]
So nothing is listening on port 901
What do I need to do to cause that to happen?

repo 04-12-2009 12:35 PM

Quote:

So nothing is listening on port 901
What do I need to do to cause that to happen?
Read the post from michaelk

john test 04-12-2009 02:20 PM

Whoops Didn't mean to step on MichaelKs post
Thanks to both of you
Sambas up, SWAT is up and I'm off and learning
The commands went into notes and the Site is bookmarked
Thanks again


All times are GMT -5. The time now is 06:29 AM.