[KLUG Members] Re: SWAT??? Where and How -- Xinetd is very different than Inetd

Bryan J. Smith members@kalamazoolinux.org
07 Dec 2002 01:12:41 -0500


--=-kLsofP3yuSlGXoUbA2QT
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2002-12-06 at 22:30, Jon Smitley wrote:
> Ok. Now I see that I should probably use SWAT instead of Webmin for
> Samba configuration.  But SWAT will not start for me.
> 1.I installed samba-swat-2.2.7-2.i386
> 2.I edited the /etc/services with: swat 901/tcp
> 3.I edited the /etc/xinetd.conf with
> 	swat stream tcp nowait.400 root /usr/sbin/swat swat
> 4.I created /etc/inetd.conf with:
> 	swat stream tcp nowait.400 root /usr/sbin/swat swat

Which one does your distro have?  Xinetd or Inetd?

If it is the former (like #3), you go into the /etc/xinetd.d directory
and modify the swat file.  Xinetd uses a directory with files, not a
single file like old Inetd.

Also note that Xinetd/SWAT only allows localhost to connect by default
(i.e. a browser on your Samba server itself).  You might want to change
that, but _understand_ the security implications of storing your
server's root password in a cookie in a browser you use to also surf the
'Net (i.e. don't do it ;-).

> (Steps 3 & 4 were done because the documentation I could find said to
> edit the /etc/inetd.conf file, but I didn't have this file, so I edited
> the /etc/xinetd.conf.  Maybe stupid, but oh well.)

Once you make the changes to the swat file, restart Xinetd.  Typically
this is done with "service xinetd restart" or similiar.

> I've stopped and started the network and the smb and nmb services any
> number of times, but still no SWAT.
> It's not supposed to be this aggravating is it?

SWAT and smbd/nmbd services are completely separate.  SWAT is just a
web-based tool for creating/modifying smb.conf, and has nothing to do
with active smbd/nmbd processes.  Although you'll need to restart them
to have many of the smb.conf changes take effect, of course.


--=20
Bryan J. Smith, E.I. (BSECE)       Contact Info:  http://thebs.org
[ http://thebs.org/files/resume/BryanJonSmith_certifications.pdf ]
------------------------------------------------------------------
  The more government chooses for you, the less freedom you have.


--=-kLsofP3yuSlGXoUbA2QT
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA98ZFZDjEszaVrzmQRApKHAKC9s0GXiHtWHul44CsJEzVJiEcwjACghqW2
pFbKkKj7Ba1MNSreAYMrGxo=
=hBT6
-----END PGP SIGNATURE-----

--=-kLsofP3yuSlGXoUbA2QT--