Locating the SWAT Support Files
Now that you have found that
swat
is in the search path, it is easy
to identify where the file is located. Here is another simple way this may be done:
frodo:~ # whereis swat
swat: /usr/sbin/swat /usr/share/man/man8/swat.8.gz
If the above measures fail to locate the
swat
binary, another approach
is needed. The following may be used:
frodo:/ # find / -name swat -print
/etc/xinetd.d/swat
/usr/sbin/swat
/usr/share/samba/swat
frodo:/ #
This list shows that there is a control file for
xinetd
, the internetwork
super-daemon that is installed on this server. The location of the SWAT binary file is
/usr/sbin/swat
, and the support files for it are located under the
directory /usr/share/samba/swat
.
We must now check where
swat
expects to find its support files. This can
be done as follows:
frodo:/ # strings /usr/sbin/swat | grep "/swat"
/swat/
...
/usr/share/samba/swat
frodo:/ #
The /usr/share/samba/swat/
entry shown in this listing is the location of the
support files. You should verify that the support files exist under this directory. A sample
list is as shown:
jht@frodo:/> find /usr/share/samba/swat -print
/usr/share/samba/swat
/usr/share/samba/swat/help
/usr/share/samba/swat/lang
/usr/share/samba/swat/lang/ja
/usr/share/samba/swat/lang/ja/help
/usr/share/samba/swat/lang/ja/help/welcome.html
/usr/share/samba/swat/lang/ja/images
/usr/share/samba/swat/lang/ja/images/home.gif
...
/usr/share/samba/swat/lang/ja/include
/usr/share/samba/swat/lang/ja/include/header.nocss.html
...
/usr/share/samba/swat/lang/tr
/usr/share/samba/swat/lang/tr/help
/usr/share/samba/swat/lang/tr/help/welcome.html
/usr/share/samba/swat/lang/tr/images
/usr/share/samba/swat/lang/tr/images/home.gif
...
/usr/share/samba/swat/lang/tr/include
/usr/share/samba/swat/lang/tr/include/header.html
/usr/share/samba/swat/using_samba
...
/usr/share/samba/swat/images
/usr/share/samba/swat/images/home.gif
...
/usr/share/samba/swat/include
/usr/share/samba/swat/include/footer.html
/usr/share/samba/swat/include/header.html
jht@frodo:/>
If the files needed are not available, it is necessary to obtain and install them
before SWAT can be used.