thedude
January 24th, 2004, 17:27
Hey ya'll. I'm setting up 5.2 Release on my dedicated Samba box after Mnadrake lost all of my files on my second disk during a power failure. My wife had her Microsoft Money backups on their and i had my Mac dmg files on there and after the power failure there was nada. I was using ext3 so it's a bit surprising.
Anyway, I have the box and up and running and I'm trying to start swat to share my HP Laserjet for my LAN. I've edited /etc/services and /etc/inetd.conf file as found on Google. Still can't login to it and setup that printer. By the way, I'm using CUPS. I can't find swat in /usr/ports. What am I missing here?

socomm
January 24th, 2004, 19:34
From swat's man page.


Name

swat Samba Web Administration Tool
Synopsis

swat [-s <smb config file>] [-a]
DESCRIPTION

This tool is part of the Samba(7) suite.

swat allows a Samba administrator to configure the complex smb.conf(5) file via a Web browser. In addition, a swat configuration page has help links to all the configurable options in the smb.conf file allowing an administrator to easily look up the effects of any change.

swat is run from inetd


It appears that swat is part of the samba suite, and should be installed along with samba. If you have any problems try posting the error below.

EDIT:
Just to double check I downloaded samba-3.* and sure enough swat is in there.
[code:1:623a3494e2]
-rw-r--r-- 1 root wheel 11 Nov 18 2001 .cvsignore
-rw-r--r-- 1 root wheel 17982 May 4 1996 COPYING
-rw-r--r-- 1 root wheel 2583 Jun 7 2003 Manifest
-rw-r--r-- 1 root wheel 8534 Aug 28 14:42 README
-rw-r--r-- 1 root wheel 0 Aug 21 1997 Read-Manifest-Now
-rw-r--r-- 1 root wheel 1113 Sep 24 10:15 Roadmap
-rw-r--r-- 1 root wheel 43636 Sep 24 18:52 WHATSNEW.txt
drwxr-xr-x 7 root wheel 512 Sep 24 18:52 docs
drwxr-xr-x 21 root wheel 512 Sep 24 18:52 examples
drwxr-xr-x 11 root wheel 512 Sep 24 18:52 packaging
drwxr-xr-x 2 root wheel 512 Jun 23 2001 pcp
drwxr-xr-x 44 root wheel 1536 Jan 24 15:40 source
--> drwxr-xr-x 6 root wheel 512 Aug 28 14:42 swat <--
drwxr-xr-x 10 root wheel 512 Sep 24 18:52 testsuite
[/code:1:623a3494e2]

Good luck!