Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Installation
Reload this Page Samba problem with localhost:901
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Installation Need help or have questions about installing Linux, including dual booting with other distros or Windows? put them here!

Reply
 
Thread Tools Display Modes
Old 12-21-2002   #1 (permalink)
rcj2
Just Joined!
 
Join Date: Dec 2002
Posts: 5
Send a message via MSN to rcj2
Samba problem with localhost:901

hello

What would be the cause of getting the error " The connection was refused when attempting to connect to 127.0.0.1:901 " When I try to go to http://localhost:901 I get a failed search on the internet for LOCALHOST. I am trying to connect from the box that has Samba installed.

I am using the xinetd.d
I have the file /etc/xinetd.d./swat, it's not disabeld, and I am running it as root. I have also restarted the daemon and rebooted. No luck. Samba is also installed on this same box. I am not trying to access it remotely. .
__________________
Thanks

Rj
rcj2 is offline   Reply With Quote
Old 12-21-2002   #2 (permalink)
majorwoo
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
localhost (which is the name for 127.0.0.1) is the local machine, or the machien you are working on - it always means the current machine, so going to http://localhost will take you to yourself, or your own web browser (assuming it is set to listen to 127.0.0.1)


What are you trying to do then, once you find the localhost?
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline   Reply With Quote
Old 12-21-2002   #3 (permalink)
wassy121
Linux Enthusiast
 
Join Date: Jun 2002
Location: San Antonio
Posts: 622
Send a message via AIM to wassy121
port 901 is swat, that is what he is trying to do. Localhost might not be aliased in /etc/hosts . try http://127.0.0.1:901
__________________
I respectfully decline the invitation to join your delusion.
wassy121 is offline   Reply With Quote
Old 12-21-2002   #4 (permalink)
rcj2
Just Joined!
 
Join Date: Dec 2002
Posts: 5
Send a message via MSN to rcj2
wassy121 & majorwoo,

I have tried to use http://localhost:901 and http://127.0.0.1:901. When I use http://127.0.0.1:901 I get the pop up error message that the connection is refused. When I try to use http://localhost:901 it gives me a failed internet search for "localhost".

I also checked the etc/hosts file and there is an entry for 127.0.0.1 localhost.
__________________
Thanks

Rj
rcj2 is offline   Reply With Quote
Old 12-21-2002   #5 (permalink)
majorwoo
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
are you running any sort of a firewall on your machine that is blocking port 901? (its unusual for a firewall to block ANY access to 127.0.0.1 but some do)
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline   Reply With Quote
Old 12-21-2002   #6 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
Check if port 901 is really listening with "netstat -antp"
Dolda2000 is offline   Reply With Quote
Old 12-22-2002   #7 (permalink)
rcj2
Just Joined!
 
Join Date: Dec 2002
Posts: 5
Send a message via MSN to rcj2
Here is some info for you guys. Thanks for all the help. Just to rule out the firewall, how would I go about shutting it down ???
Thanks



[root@localhost root]# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1024 0.0.0.0:* LISTEN 782/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 754/portmap
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 1170/X
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 950/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1023/sendmail: acce
tcp 0 0 127.0.0.1:1146 0.0.0.0:* LISTEN 3186/xinetd
[root@localhost root]#
******
[root@localhost etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
*****
__________________
Thanks

Rj
rcj2 is offline   Reply With Quote
Old 12-22-2002   #8 (permalink)
wassy121
Linux Enthusiast
 
Join Date: Jun 2002
Location: San Antonio
Posts: 622
Send a message via AIM to wassy121
make sure xinetd did not disable the service when it started up for some reason or another. This information would be in /var/logs/messages or /var/adm/messages (or somewhere similar). It looks like swat is not running as a daemon by your netstat output, but that is the way it should be, it should not run unless it is asked for (then inetd will start it). So all in all, check your syslog, and post your /etc/xinetd.d/swat file if you still can't find it. It might be trying to run as a user that doesn't exist (took me a couple days to find that).
__________________
I respectfully decline the invitation to join your delusion.
wassy121 is offline   Reply With Quote
Old 12-23-2002   #9 (permalink)
rcj2
Just Joined!
 
Join Date: Dec 2002
Posts: 5
Send a message via MSN to rcj2
wassy121
I posted my swat file for you. I also checked the var/messages fiile and posted them below. Let me know what you think. Thanks for all the help.

Rob


[root@localhost xinetd.d]# cat swat
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
disable = no
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
[root@localhost xinetd.d]#

*****

Dec 22 13:24:54 localhost smb: smbd startup succeeded
Dec 22 13:24:54 localhost smb: nmbd startup succeeded
Dec 22 13:30:34 localhost xinetd[3186]: Exiting...
Dec 22 13:30:35 localhost xinetd: xinetd shutdown succeeded
Dec 22 13:30:36 localhost xinetd[12812]: Server /usr/sbin/swat is not executable [line=13]
Dec 22 13:30:36 localhost xinetd[12812]: chargen disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: chargen disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: daytime disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: daytime disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: echo disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: echo disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: finger disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: ntalk disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: exec disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: login disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: shell disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: rsync disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: talk disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: telnet disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: time disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: time disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: ftp disabled, removing
Dec 22 13:30:36 localhost xinetd[12812]: Service swat missing attribute server
Dec 22 13:30:37 localhost xinetd[12812]: xinetd Version 2.3.3 started with libwrap options compiled in.
Dec 22 13:30:37 localhost xinetd[12812]: Started working: 1 available service
Dec 22 13:30:39 localhost xinetd: xinetd startup succeeded
Dec 22 13:38:49 localhost xinetd[12856]: warning: can't get client address: Transport endpoint is not connected
Dec 22 13:38:49 localhost fam[12856]: fd 4 message length 1195725856 bytes exceeds max of 4135.
Dec 22 13:39:20 localhost last message repeated 3379 times
Dec 22 13:40:10 localhost last message repeated 5789 times
Dec 22 13:49:50 localhost xinetd[12871]: warning: can't get client address: Transport endpoint is not connected
Dec 22 13:49:50 localhost fam[12871]: fd 4 message length 1195725856 bytes exceeds max of 4135.
Dec 22 13:50:21 localhost last message repeated 3287 times
Dec 22 13:51:17 localhost last message repeated 6048 times
Dec 23 04:02:23 localhost syslogd 1.4.1: restart.
[root@localhost log]#
__________________
Thanks

Rj
rcj2 is offline   Reply With Quote
Old 12-23-2002   #10 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
Well, apparently, your swat file is missing the "server" attribute. The server attribute specifies what file to run when the service is being connected to by another end. Since I don't use swat, I don't know where it is, but log in as root and run "type -p swat" and you're sure to find out. Then, just add "server = <path>", where <path> of course is the path to the swat file as revealed by 'type -p swat".
Dolda2000 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh / samba / xdm problem after reboot wessel SuSE Linux Help 0 08-20-2006 04:35 AM
samba problem rprange Linux Networking 2 09-26-2005 09:50 AM
Samba Problems boiseneon Servers 24 08-27-2005 03:42 PM
Samba problem ceviz Mandriva Linux Help 1 11-07-2004 06:02 PM
'n00b' problem connecting to samba mjordan2nd Servers 7 06-01-2004 01:18 PM




All times are GMT. The time now is 03:41 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0