Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'SWAT is there...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
SWAT is there...
Authored by: robg on Aug 26, '02 09:45:17AM
I found swat in /usr/sbin, and then found documentation on this page of the Samba site regarding SWAT activation. Here's what it said about xinetd systems (which I believe is what Jaguar is using):
Xinetd Installation

Newer Linux systems ship with a more secure implementation of the inetd meta-daemon. The xinetd daemon can read configuration inf9ormation from a single file (i.e. /etc/xinetd.conf) or from a collection of service control files in the xinetd.d/ directory. These directions assume the latter configuration.

The following file should be created as /etc/xientd.d/swat. It is then be neccessary cause the meta-daemon to reload its configuration files. Refer to the xinetd man page for details on how to accomplish this.
## /etc/xinetd.d/swat
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = No
}
I created the above file (as shown) to reflect the location of swat on OS X, and then restarted ... no luck. Logged in as root ... no luck.

So I'm stumped, but it looks like it should work ... anyone?

[ Reply to This | # ]
SWAT is there...
Authored by: silicondiode on Aug 26, '02 10:31:34AM

dumb question - does SWAT require that Web sharing be turned on?



[ Reply to This | # ]
Hmm, not sure...
Authored by: robg on Aug 26, '02 11:51:19AM

I think SWAT is its own little webserver, but I might be wrong...

-rob.



[ Reply to This | # ]
SWAT is there...
Authored by: vajonez on Aug 26, '02 02:09:23PM

10.2 is running inetd not xinetd. I followed the instructions in the swat man page for "INETD INSTALLATION" and it worked swimmingly.



[ Reply to This | # ]
SWAT is there...
Authored by: vajonez on Aug 26, '02 02:13:15PM

Oops. I, of course, used the actual location of the swat binary (/usr/sbin/swat instead of /usr/local/samba/bin/swat) when I modified /etc/inetd.conf.



[ Reply to This | # ]
SWAT is there...
Authored by: necrosis on Aug 30, '02 10:33:04PM

This does not work for me, set everything up buy the book (or rather man page) and when i do http://localhost:901 i get:

400 Server Error
chdir failed - the server is not configured correctly

...and i know it is.



[ Reply to This | # ]
SWAT is there...
Authored by: wesleykonrad on Sep 05, '02 06:57:23PM

I got the exact same error.



[ Reply to This | # ]
SWAT is there...
Authored by: vajonez on Feb 27, '03 02:39:29AM

Sorry guys, I just spun up a new machine and this just works. I wish i could help.



[ Reply to This | # ]
inetd vs. xinetd
Authored by: robg on Aug 26, '02 03:58:32PM

Cool! I'll write it up as a separate hint for those not following this thread. What's odd is that xinetd is definitely used for some things, such as the FTP server ... oh well, just shows my complete lack of knowledge on most things UNIX!

-rob.



[ Reply to This | # ]
inetd vs. xinetd
Authored by: rik_bogusz on Aug 26, '02 05:22:05PM

could you post further info on this on the main page? i've just tried editing the inetd.conf and the other file, and i don't think i've done it correctly yet, cant get the smb.conf browser editor up yet. i'm sure there's lots of us who really need to access other volumes/directories besides the home directory from a windows machine.

much TIA



[ Reply to This | # ]
SWAT is there...
Authored by: BraindeadMac on Sep 03, '02 06:28:00AM

Uh, actually xinetd is now the preferred internet services demon in 10.2 (this is detailed in the Apple documentation somewhere), but inetd is still supplied. If you updated 10.2 from 10.1.5, you'll see that the installer moved /etc/inetd.conf
to /etc/inetd.conf.applesaved and that the new inetd.conf has no services actually enabled.



[ Reply to This | # ]