Chapter 27 . Running a File Servers (Kids web site) 733

Chapter 27 . Running a File Servers 733 Here s how to set up SWAT in Fedora Core and other Red Hat Linux systems: 1. Turn on the SWAT service by typing the following, as root user, from a Terminal window: # chkconfig swat on 2. Pick up the change to the service by restarting the xinetd startup script as follows: # service xinetd restart Linux distributions such as Debian, Slackware, and Gentoo turn on the SWAT service from the inetd superserver daemon. After SWAT is installed, you simply remove the comment character from in front of the swat line in the /etc/inetd.conf file (as root user, using any text editor) and restart the daemon. Here s an example of what the swat line looks like in Debian: swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat With the SWAT service ready to be activated, restart the inetd daemon so it rereads the inetd.conf file. To do that in Debian, type the following as root user: # /etc/init.d/inetd restart The init.d script and xinetd services are the two ways that SWAT services are generally started in Linux. So if you are using a Linux distribution other than Fedora or Debian, look in the /etc/inetd.conf file or /etc/xinetd.d directory (which is used automatically in Fedora), for the location of your SWAT service. When you have finished this procedure, a daemon process will be listening on your network interfaces for requests to connect to your SWAT service. You can now use the SWAT program, described in the next section, to configure Samba. Starting with SWAT You can run the SWAT program by typing the following URL in your local browser: http://localhost:901/ Enter the root username and password when the browser prompts you. The SWAT window (see Figure 27-2) appears. Instead of running SWAT from your local browser, you can run it from another computer on the network by substituting the server computer s name for localhost. (To allow computers besides localhost to access the swat service on Fedora systems, you must change or remove the only_from = 127.0.0.1 line from the /etc/xinetd.d/swat file and restart the xinetd service.) Tip
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

Leave a Reply