LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-03-2003, 08:00 PM   #16
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49

check ur fwall ruleset and make sure the xinetd is running. restart it to be sure:

/sbin/service xinetd restart
 
Old 02-03-2003, 08:26 PM   #17
RWild
Member
 
Registered: Nov 2002
Location: Cary, NC
Distribution: Red Hat
Posts: 76

Rep: Reputation: 15
Try becoming root and starting a browser from that terminal. This worked for me. Thereafter, I can use samba as a normal user or at least the one linked to the "guest" account.

Should be "can use swat as a normal"

Last edited by RWild; 02-04-2003 at 08:22 AM.
 
Old 02-03-2003, 09:07 PM   #18
lsterman
LQ Newbie
 
Registered: Feb 2003
Distribution: redhat 8.0
Posts: 4

Rep: Reputation: 0
Well, I've tried everything suggested and I'm still stuck. Convinced I'm missing something simple, but who knows?

I've checked with netstat -antp and it appears that swat is not listening on port 901, but I'm not sure what to do about it. All of the necessary files are configured properly according to your suggestions.
 
Old 02-04-2003, 08:36 PM   #19
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
swat should present a login prompt.

if it's not I would say it's not running or it's not listening on the interface at port 901

it should be on the lo interface by default, so 127.0.0.1:901 should work. localhost:901 is supposed to work as well.

check your log files for errors as you try to connect.
 
Old 02-05-2003, 12:35 PM   #20
lsterman
LQ Newbie
 
Registered: Feb 2003
Distribution: redhat 8.0
Posts: 4

Rep: Reputation: 0
I finally fixed the problem.

When I installed swat, I carefully followed the instructions to insert the following line into the inetd.conf file:

swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat

I incorrectly assumed that the same would be necessary in the xinetd.conf file. Once I removed this line, everything worked fine.

Thanks for your help...your suggestions helped point me in the right direction.
 
Old 02-05-2003, 04:02 PM   #21
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Yes, that is the old way of doing it.
 
Old 02-05-2003, 04:22 PM   #22
lsterman
LQ Newbie
 
Registered: Feb 2003
Distribution: redhat 8.0
Posts: 4

Rep: Reputation: 0
Interestingly, there is still documentation out there that is incorrect. That's what led me astray.
 
Old 02-05-2003, 06:00 PM   #23
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
It's one of the problems. Actually the information is still useful to some people, as they have a different system. A lot of things are relative to the newer versions of an app, but you just need to be careful with redhat and mandrake like distros. They have different ways of doing the initd and xinetd scripts than other distros like slackware's scripts.


I guess I should have said, that's the old redhat way.

Last edited by DavidPhillips; 02-05-2003 at 06:01 PM.
 
Old 02-26-2003, 10:42 PM   #24
GTVincent
LQ Newbie
 
Registered: Feb 2003
Location: VA
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by DavidPhillips
swat should present a login prompt.

if it's not I would say it's not running or it's not listening on the interface at port 901

it should be on the lo interface by default, so 127.0.0.1:901 should work. localhost:901 is supposed to work as well.
It may be a little long after the last post, but what I found today may help 'those that come behind us'.

My problem was that http://localhost:901 was resolved into http://www.localhost.com and sent out to the web, rather than staying on my one and only left over RedHat box. A helpless and unsuccessful browser (Mozilla) was the result. As it turned out, during installion, RedHat 8.0 had put the following line in /etc/hosts:

Code:
127.0.0.1   localhost.localdomain    localhost
Getting the localhost.localdomain out of there and putting localhost in its place solved this problem for me. Immediately after restarting Mozilla and entering http://localhost:901 I got prompted for a password. I guess that Mozilla just doesn't do multiple hostnames for one IP-address.
 
Old 02-28-2003, 08:41 PM   #25
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
that's kind of strange, the .localdomain part of the name is the domainname. It should not normally cause a problem with mozilla. Maybe something in /etc/resolv.conf is causing a problem
 
Old 02-28-2003, 10:50 PM   #26
GTVincent
LQ Newbie
 
Registered: Feb 2003
Location: VA
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by DavidPhillips
that's kind of strange, the .localdomain part of the name is the domainname. It should not normally cause a problem with mozilla. Maybe something in /etc/resolv.conf is causing a problem
I agree, it doesn't seem right, because this defeats the purpose of aliases entirely. Still, that single modification to /etc/hosts/ made all the difference. And it was just a normal /etc/hosts, 127.0.0.1 was the only line in there. That's why I suspect Mozilla to be the culprit here, because it didn't pick up the 'localhost' on that same line after 'localhost.localdomain'. Otherwise I wouldn't have a clue as to why Mozilla immediately resolved that to www.localhost.com rather than stay on my box. I haven't tried with other browsers (yet), but maybe that will give more insight. Or maybe there are people who did get this to work with Mozilla?
 
Old 03-01-2003, 09:26 PM   #27
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I have seen this before

127.0.0.1 localhost localhost.localdomain localhost
 
Old 11-28-2005, 07:50 PM   #28
RIB
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
How about some "# service httpd start" ?
You thought of that one already? I overlooked it too... how's SWAT gonna show up in your browser if you forget about Apache and it ain't running?
 
  


Reply



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
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
localhost:901,it says:it cannot be found. whepin Linux - Networking 1 12-31-2001 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration