LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-01-2001, 10:21 AM   #1
bedwardj
LQ Newbie
 
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16

Rep: Reputation: 0
Question


We've got a linux box here at work acting as a firewall/dhcp server. I'm trying to set up samba, but I'm having trouble running swat. The linux box does not have a monitor hooked up to it, so I'm accessing it remotely via telnet on a Win98 machine.

I've commented out the disable = yes option in /etc/xinetd.d/swat. I've tried a couple of different options for the only_from = option.

I tried the using 192.168.1.1 which is eth1 (the internal nic) and w.x.y.z which is eth0 (the external nic, static ip), but it doesn't work when I try accessing swat from my Win98 machine's browser. I've even disabled ipchains momentarily to verify it wasn't being filtered out.

Any thoughts on running swat remotely? It wouldn't do me a lot of good to hook up a monitor since I don't have a browser installed on the linux box anyway.

Right now I've just been editing smb.conf manually, but I'd like know how to access it via swat to get the full experience.

Thanks!
 
Old 06-01-2001, 01:47 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You are using port 901 for the connection, right?

http://192.168.1.1:901

Is swat directive in (and uncommented) in /etc/inetd.conf?

swat stream tcp nowait.400 root /usr/sbin/swat swat

Check your firewall logs?
 
Old 06-01-2001, 02:18 PM   #3
bedwardj
LQ Newbie
 
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16

Original Poster
Rep: Reputation: 0
I'm using port 901.

I don't have /etc/inetd.conf
That file is not anywhere on the system.

Can you explain what inetd.conf is used for as I'm quite new to Linux.

FYI...the samba server does work with my manual editing of smb.conf. I can see my home directory from Neighborhood Network and I have mounted an smb file share from one of the windows machines on the network.

I'll have to check the firewall logs.

Thanks
 
Old 06-01-2001, 02:33 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
inetd 'listens' to ports on your box and can spawn the required processes. I think that SWAT needs this to be installed and I don't know of a workaround. SWAT through ssl is a good idea too but it's on my get around to it list.

In short - install inetd and add the SWAT guts to it. Disable everthing else you don't need. (telnet/rlogin).
 
Old 06-01-2001, 06:55 PM   #5
bedwardj
LQ Newbie
 
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16

Original Poster
Rep: Reputation: 0
i finally got inetd installed and updated the rpms for samba and apache.

i included the info into inetd.conf

still no good.

inetd was not even on my redhat 7.0 installation cd's. i had to get it from redhat's 6.2 updates. do you know if redhat replaced inetd with some other server?

thanks, brian
 
Old 06-01-2001, 08:56 PM   #6
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
It's not on the 7.x cd cause they call it xinetd now..

And I never got SWAT running either.. not that I tried very long as I quickly found another way to set it up remotely using my browser.. (actually the dOOds running our Linux servers at work use this app)
http://www.webmin.com/webmin/

That ownz!!!!! took me 5 min to install and get that working..
Try it out.. I'm pretty sure you won't be disappointed

yes.. I know I said it before, but I really like using it...LOL
 
Old 06-01-2001, 10:41 PM   #7
SensFan
Member
 
Registered: May 2001
Location: Toronto, Canada
Distribution: Slackware
Posts: 67

Rep: Reputation: 15
I've been fighting the same problem, and I have now gone with webmin. good call Q25
 
Old 06-02-2001, 02:29 PM   #8
Breezwell
Member
 
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214

Rep: Reputation: 30
Make sure inetd is actually running before you try and use SWAT. If you want it to run at boot, you will need to edit the apporopirate rc.d directory. Also check your /etc/services file to make sure the SWAT line is uncommented.

 
Old 06-03-2001, 11:28 PM   #9
bedwardj
LQ Newbie
 
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16

Original Poster
Rep: Reputation: 0
I'll probably give webmin a shot.

Another question...I'm so new at this!

I uninstalled inetd since I've got xinetd. I checked the settings again, and I haven't succeeded.

I've tried to stop xinetd and restart it with the new settings, but I'm not sure I did it correctly.

I did something like... xinetd -SIGUSR1
I also tried... xinetd -SIGUSR2
I may have done... kill -HUP <pid>
I looked up the <pid> using cat or less

It seems like one of these should have worked.

I also blanked out the only_from = w.x.y.z line in the xinetd/swat file.

Any further thoughts? If not thanks for all your comments. I've learned some new things...that's good at least.
 
Old 06-04-2001, 10:33 AM   #10
bedwardj
LQ Newbie
 
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16

Original Poster
Rep: Reputation: 0
Thumbs up

Well, it works now.

I was working on it this weekend from a remote site, and it wouldn't let me have access. This morning at work, I got on without any problems. The only_from = should be set to localhost only if you're going to run it from that machine, other wise you should add ip addresses for your lan.

I guess I must have restarted xinetd correctly?

I don't know, don't care...it works.

Thanks for your comments.
 
  


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
keep running x programs remotely kichukov Linux - Software 16 10-23-2005 12:52 PM
Running X-WINDOW remotely consistgd Linux - Software 8 11-12-2004 05:45 AM
Problem running SWAT duffboygrim Linux - Networking 2 03-19-2004 06:07 AM
Running SWAT Breezwell Linux - Networking 11 05-19-2001 11:22 AM
remotely running X apps JustinHoMi Linux - Networking 1 04-30-2001 03:39 PM

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

All times are GMT -5. The time now is 11:45 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