Sun 31 Dec 2006
Samba Configuration with SWAT Samba Configuration with SWAT If you open the Sarnba configuration files using gedit (or any text editor), you’ll see that the information and syntax used is rather complex. It is possible to configure Samba by editing these files in a text editor, but if you’re not familiar with it then it can be quite difficult and prone to error. Samba provides a number of command-line utilities for configuration too (some of which we mentioned above), but perhaps the easiest way to configure Samba is by using the Samba Web Administration Tool (SWAT). SWAT is a web-based interface, which means that you can use it to configure and manage your Samba server through a web browser - if you want, you can even do it remotely across a network or even across the Internet. Note If you are thinking of using SWAT for remote Samba management, you should note that SWAT will transmit your username and password in clear text when you log in. Across and insecure connection, this presents the risk that an unwelcome visitor could sniff out your login credentials and use them to ill effect. To avoid this, you should only use SWAT from within a secure network. In fact, as we’ll see shortly, SWAT’s default configuration makes it available only at http://localhost:901. Let’s see how to install SWAT and start the SWAT service. When we’ve done that, we’ll be ready to use SWAT to configure Samba and set up our file server for use. Installing SWAT Red Hat Linux 9’s Package Management GUI tool doesn’t provide an option for installing the SWAT package. Instead, we must install this package via the RPM’s command line utility, the SWAT utility is made available through the samba-swat package. Here’s how to install the samba-swat package at the command line: 1. Launch a terminal window, and switch to the root user account by using this command: $ su - 2. Insert Red Hat Linux 9 distribution Disk 2. Change to the directory on the CD that contains the RPM package files: # cd /mnt/cdrom/RedHat/RPMS Note If you get a No such file or directory message, it’s probably because the CD wasn’t mounted automatically when you inserted it. In this case, mount the CD manually: # mount /dev/cdrom Then try the above cd command again. 3. Use the ls command to find out the exact version of samba-swat contained on the disk. For example: # ls samba-swat*.rpm samba-swat-2.2.7a-6.i386.rpm If this command doesn’t find any matches, then remove the disk, replace it with Disk 1 or Disk 2, and return to Step 2. 4. Install the samba-swat package you’ve just found, by using the rpm command: # rpm -ivh samba-swat-2.2.7a-6.i386.rpm 295
Quick Hint: If you are looking for cheap and reliable provider to host and run your servlet application check Vision servlet hosting plans