LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-04-2007, 06:05 PM   #1
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
samba/swat: can't connect to "http://localhost:901/"


hi all,

I'm really looking for an idiot's guide to samba.

At work we have a small winblow$ workgroup.. (I, the lone linux geek) so I'm trying to configure samba so I can see & be seen from linux on my lappy (#2 in the sig) slackware-11 of course

I know nothing about networking. I have been reading the official samba site's docs and getting somewhere (?)

Code:
$ ps -A | grep smbd
 1736 ?        00:00:00 smbd
 1745 ?        00:00:00 smbd
$ cat /etc/services /etc/inetd.conf | grep swat
swat            901/tcp    # samba web configuration tool
swat           stream  tcp     nowait.400 root /usr/sbin/swat  swat
which seems correct...

then I open firefox and go to "http://localhost:901/" to try and configure samba but I keep getting unable to connect.

any help here? is there another way (besides samba) to 'join' the M$ club here?

i've tried searching LQ for samba stuff but seems everything is over my head..

tia
 
Old 06-04-2007, 06:31 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
As far as SWAT goes, have a look at http://www.samba.org/samba/docs/man/...AT.html#xinetd. Basically, you need to edit /etc/inetd.conf and re-start inetd.

Have you had a look at The Official Samba-3 HOWTO and Reference Guide and Samba-3 by Example? They're both quite good.
 
Old 06-04-2007, 09:47 PM   #3
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
Swat uses the "hosts allow" setting in the /etc/samba/smb.conf file for security. It should be set similar to this:

Quote:
hosts allow = 192.168.1. 127.
Where "192.168.1." would be your local network and "127." is the localhost network. If you don't include "127." in "hosts allow", then localhost can't access Swat.
 
Old 06-05-2007, 10:59 AM   #4
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
thanks for the replies,
Quote:
Originally Posted by gilead
you need to edit /etc/inetd.conf and re-start inetd.
i have, is this correct?
Quote:
$ cat /etc/services /etc/inetd.conf | grep swat
swat 901/tcp # samba web configuration tool
swat stream tcp nowait.400 root /usr/sbin/swat swat
i actually didnt change anything on those lines. they are stock slackware. and of course, I have multiple tabs open to the official samba documentation. but like I said...idiot's guide

@centauricw- I have added the correct host now to smb.conf, now I see in
Code:
ls /var/log/samba*
all the computers in our MS workgroup. but I still can't log into swat.
 
Old 06-05-2007, 11:06 AM   #5
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
also, I have tried connecting to localhost:901 from terminal/links as root but no luck there either..
 
Old 06-05-2007, 11:14 AM   #6
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
I am truly and idiot

sorry for wasting everyone's time.. i finally did a:
ps -A | grep inetd

followed by:

ls -l /etc/rc.d/rc.inet*

which showed me two things.. inetd was not running, and it was not set executable... gee I wonder why I couldn't connect to swat?

thanks for the replies and help..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Samba: http://localhost:901 doesn't work lagu2653 Linux - Networking 5 06-29-2005 03:13 PM
SWAT cannot connect to localhost port 901 KhmerDucky Linux - Networking 1 06-10-2005 01:17 PM
Samba - Swat: Cannot Connect to Localhost:901 Sloppyunderfoot Linux - Networking 3 02-10-2005 12:26 PM
SAMBA & SWAT - Connection refused when attempting to connect Localhost:901 ScooterB Linux - Networking 3 12-24-2003 04:15 PM
Errors on accessing Swat SAMBA http://localhost:901 @ Mandrake 9.0. Zepiroth Linux - Networking 2 06-03-2003 09:51 PM


All times are GMT -5. The time now is 12:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration