Enabling Samba and SWAT on Ubuntu

by Jon

I recently got an album from AllOfMP3.com on my laptop while I was away from my house, and wanted it on my desktop computer. In the past I’ve used Samba to transfer from Windows to Linux, so that’s what I did this time.

There were a couple of problems though, i didn’t have samba installed or configured because I just switched from Ubuntu Breezy to Ubuntu Dapper. Samba can be a bit of a pain to set up by hand, so that’s why I use SWAT (Samba Web Administration Tool).

SWAT doesn’t work automatically in ubuntu though, in order to get it to work the install the following packages if you’re using inetd (not recommended):

apt-get install samba swat netkit-inetd sudo update-inetd --enable 'swat'

Otherwise, if you’re using the recommended xinetd use the following fix:

Create a text file called ‘swat’ with the following information in it:

`# default: on

description: SWAT - The Samba Web Administration Toolkit

service vmware-authd
{
disable = no
port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
type = unlisted
}`
Then restart either (x)inetd and in your browser goto http://localhost:901 to log in.

That should work, if it doesn’t email me at howe dot jon -at- gmail _dot_ com

Comments

  1. Wastl

    Thanks a lot, Howe.Jon!!!
    I’ve been searching the internet for a while as well as I’ve tried to get swat to work on my Ubuntu Dapper Drake system on my own. Finally, I succeeded by simply installing netkit-inetd (as you wrote in your short How To)!!! One should add this to the dependencies of swat…

    Again, many thanks!
    With kind regards,
    Wastl

  2. Roy Ferguson

    Mr. Howe.

    Thank you so much, I’ve spent days trying to resolve this issue. All the articles I’ve read just led me in different directions. I’m new to linux and like the ubuntu desktop, Your How To worked perfect.

    Wishing you much health and happiness!
    Roy

  3. chirayu patel

    Thank you for the help with swat! Got it up and running within minutes.

    😉

    Once again, thanks.

  4. Rai Chaves

    Thaks man, I had the same problem with Kurumin Linux, and your tip solved on both OS. Perfect!! It is up and running!

  5. wes

    You are so UBER!!!!11

    Seriously, thanks for the help.

  6. christiono

    thx :),

    you help me :p.

  7. yong

    hm… mine doesn’t work at all..

Leave a comment