Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Installation & Upgrades
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Installation & Upgrades
For questions about upgrading and installation of your new Ubuntu OS.

 
Thread Tools Display Modes
Old August 20th, 2005   #1
svetlo56
5 Cups of Ubuntu
 
Join Date: Aug 2005
Beans: 15
Samba and Swat

I installed both Samba and Swat. Samba appears to be working, but I can't launch Swat. When I try http://127.0.0.1:901/ I get "the connection was refused when attempting to contact 127.0.0.1". Now I do not know how to launch Swat. Anyone?
svetlo56 is offline   Reply With Quote
Old August 20th, 2005   #2
dberetta
First Cup of Ubuntu
 
Join Date: Aug 2005
Location: San Jose, Ca
Beans: 4
Send a message via Yahoo to dberetta
Re: Samba and Swat

We dont know what you have done and what you have not.
Have you tried this ?

sudo update-inetd --enable 'swat'
__________________
Life is like a box of..... oh forget it!
dberetta is offline   Reply With Quote
Old October 16th, 2005   #3
hamil
Gee! These Aren't Roasted!
 
hamil's Avatar
 
Join Date: Feb 2005
Location: Bodø, Norway
My beans are hidden!
Ubuntu 7.10 Gutsy Gibbon
Re: Samba and Swat

Hello!

I think I will reopen this thread...
Earlier today, I installed swat via Synaptic, togheter with the samba packages.
I am triyng to set up a small network to share files between the computers at our WLAN at home.

When trying to access http://localhost:901, or http://127.0.0.1:901 I get an "Connection refused" message...

I have no clue whatsoever, about my next step...
I have tried some googling, but most of the replies I could find, asked me to do some editing in files I do not have on my computer.

Any ideas?

Brdgs
Lasse
hamil is offline   Reply With Quote
Old October 16th, 2005   #4
rider343
A Carafe of Ubuntu
 
rider343's Avatar
 
Join Date: Dec 2004
Location: Caxias do Sul - RS - Brasil
Beans: 76
Dapper Drake
Send a message via MSN to rider343
Re: Samba and Swat

I have the same problem here
__________________
Registered Linux User # 374208
http://pt-br.ubuntuguide.org/
rider343 is offline   Reply With Quote
Old October 16th, 2005   #5
triplep
5 Cups of Ubuntu
 
triplep's Avatar
 
Join Date: Oct 2005
Location: 127.0.0.1
Beans: 20
Kubuntu 9.04 Jaunty Jackalope
Re: Samba and Swat

inetd doesn't work initally in breezy, you need to get 'netkit-inetd' with either snaptic or apt-get, whichever you prefer


i doubt that this applies to the 5.04 Hoary rls, i was just replying to the asked question.

Last edited by triplep; October 16th, 2005 at 10:54 PM..
triplep is offline   Reply With Quote
Old October 17th, 2005   #6
hamil
Gee! These Aren't Roasted!
 
hamil's Avatar
 
Join Date: Feb 2005
Location: Bodø, Norway
My beans are hidden!
Ubuntu 7.10 Gutsy Gibbon
Re: Samba and Swat

Jupps, that did miracles!

Triplep, thanx for the solution!
hamil is offline   Reply With Quote
Old August 28th, 2007   #7
Heliix
Just Give Me the Beans!
 
Join Date: May 2005
Location: Prague
Beans: 48
Xubuntu 6.10 Edgy
Send a message via ICQ to Heliix
Re: Samba and Swat

Quote:
Originally Posted by triplep View Post
inetd doesn't work initally in breezy, you need to get 'netkit-inetd' with either snaptic or apt-get, whichever you prefer


i doubt that this applies to the 5.04 Hoary rls, i was just replying to the asked question.
thanks, worked for me (ubuntu edgy)
Heliix is offline   Reply With Quote
Old May 3rd, 2006   #8
fabioleitao
First Cup of Ubuntu
 
Join Date: May 2006
Location: Rio de Janeiro
Beans: 6
Ubuntu Karmic Koala (testing)
Send a message via ICQ to fabioleitao Send a message via MSN to fabioleitao Send a message via Skype™ to fabioleitao
Re: Samba and Swat

Oddly enough, I think SWAT was never in the planes for Ubuntu.

I have no problem in setting things up manually, and scrubbing a few conf files till perfection... but I've realized it's a commom problem for most people.

Of course I've been through the usual steps, such as sudo apt-get samba samba-common smbfs smbclient swat

But for you to get swat to work, you will need to install a dependency beforehand apt-get install xinetd .

Then, sudo vi /etc/inetd.conf and uncomment the line:
#<off># swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat

Then make an entry for Swat under xinetd with sudo vi /etc/xinetd.d/swat

And it should look like this:
# description: SAMBA SWAT
service swat
{
disable = no
socket_type = stream
protocol = tcp
#should use a more limited user here
user = root
wait = no
server = /usr/sbin/swat
}
Then, sudo dpkg-reconfigure xinetd to restart with the new configuration.

Now the netstat -lt should echo something similar to this:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:5666 *:* LISTEN
tcp 0 0 localhost:1026 *:* LISTEN
tcp 0 0 localhost:1027 *:* LISTEN
tcp 0 0 *:swat *:* LISTEN
tcp 0 0 localhost:mysql *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:10000 *:* LISTEN
tcp 0 0 *:1040 *:* LISTEN
tcp 0 0 *:munin *:* LISTEN
tcp 0 0 localhost:ipp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp6 0 0 *:2080 *:* LISTEN
tcp6 0 0 *:www *:* LISTEN
tcp6 0 0 *:ssh *:* LISTEN
Which indicates the swat service is running and listening to the correct 901 tcp port.

Remember to open the TCP port for the firewall if you are using any.

My iptables -L -v looks like that:
Chain INPUT (policy ACCEPT 1607 packets, 168K bytes)
pkts bytes target prot opt in out source destination
18688 3148K ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:www
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:microsoft-ds
18 3450 ACCEPT udp -- eth0 any anywhere anywhere udp dpts:netbios-ns:netbios-ssn
11 528 ACCEPT tcp -- eth0 any localnet/24 anywhere tcp dpt:swat
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt: x11
291 39656 ACCEPT udp -- eth0 any localnet/24 anywhere
0 0 ACCEPT icmp -- eth0 any localnet/24 anywhere
94 6728 ACCEPT all -- lo any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 2317K packets, 2125M bytes)
pkts bytes target prot opt in out source destination


You might be able to access http://<yourserver>:901/

Last edited by fabioleitao; January 18th, 2007 at 11:28 PM..
fabioleitao is offline   Reply With Quote
Old June 20th, 2007   #9
maphew
Just Give Me the Beans!
 
Join Date: Jul 2005
Location: yukon
Beans: 52
Ubuntu 7.10 Gutsy Gibbon
Re: Samba and Swat

Thank you fabioleitao!

I added part of your help to https://help.ubuntu.com/community/Swat
__________________
--matt
maphew is offline   Reply With Quote
Old July 28th, 2007   #10
jet2230
Just Give Me the Beans!
 
Join Date: Oct 2006
Location: uk
Beans: 64
Ubuntu 8.10 Intrepid Ibex
Send a message via MSN to jet2230
Re: Samba and Swat

Quote:
Originally Posted by maphew View Post
Thank you fabioleitao!

I added part of your help to https://help.ubuntu.com/community/Swat
sorry im blind , this guide did the job for me thanks.
jet2230 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:56 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry