- Basic Linux tutorials for beginner
- Linux basic concepts, installation and troubleshooting
- Linux administration
- Linux commands
- Linux network tutorials
- Linux security tutorials
- Linux software configuration
- Linux desktop tutorials for beginner
- Collection of Linux tips
- Windows basic tutorials
- Introduction to windows
- Windows pre-installation
- Windows Installation
- Windows xp desktop
- Log on for the first time
- Windows XP control panel
- Managing Folders in Windows XP
- Outlook Express Setup
- How to import address book in Outlook Express
- Import Ms Exchange inbox file(.pst) into Ms Outlook 2003
- Import Outlook Express email messages into Ms Outlook 2003
- How to mount and unmount usb drive (thumb drive) in Windows
- House keeping - Keep your Windows clean and tidy
- Windows basic tutorials
Setup Linux ftp server - Install and configure vsftpd in Slackware
Submitted by jinlusuh on Wed, 09/10/2008 - 10:29
FTP is an Internet file transfer protocol. It's used widely to transfer data between the Internet, WAN and LAN network around the world. In Slackware Linux, ftp server and ftp client are included in default installation. Proftpd is a default ftp server in Slackware for many years but starting from version 10.2, Slackware ships vsftpd in the official packages as well. In this tutorial, we'll learn how to setup vsftpd as ftp server in Slackware Linux and configure vsftpd.conf file to customize ftp server to our needs.
If you are using other Linux distribution, you can also use this tutorial as a guide. The vsftpd ftp server package comes with Fedora and other major distributions too but if you can't find it in your Linux, you can download the package from your Linux distribution's website or source from the vsftpd official website.
This tutorial is a beginner's guide on how to setup vsftpd ftp server in Slackware Linux. The tutorial covers:
- Check vsftpd in Slackware Linux
- Install vsftpd in Slackware Linux
- Configure vsftpd as Slackware ftp server
- Restart vsftpd ftp server
- Test vsftpd ftp server
Firstly, we need to check vsftpd package in our Linux system. Normally we can use Linux package management system to check installed package and use Linux ps command to verify the running service. We can also check log for installed packages. In Slackware Linux, we can use pkgtool to check whether vsftpd has been installed or not. See example below:
Open Linux terminal and type pkgtool and press enter.
Use arrow down key and choose View option to view the list of files in a package.
Press v key to go the package name start with v. Press arrow key and search for vsftpd.
Press enter to read information about vsftpd package. The Very Secure FTP Daemon was written by Chris Evans.
Press Tab key to move cursor to the Cancel button. Enter to exit.
Press Tab key again to move cursor to the Cancel button. Enter to exit.
You can also check vsftpd package in /var/log/packages:
We can see that vsftpd is already installed in my Slackware. Don't worry, here is a guide on how to install vsftpd in Slackware in case yours is not installed:
The less hassle way to install vsftpd in Slackware Linux is using slackpkg. However, you need to install and configure slackpkg before you can use it because slackpkg is not installed by default. You also need an Internet connection. See Slackware package management system on how to use slackpkg. To install vsftpd using slackpkg, invoke the command below:
The easiest way is to use pkgtool and install vsftpd from Slackware dvd installer. You have to mount Slackware dvd installer before issuing the pkgtool command. In the pkgtool main menu, choose to install from other directory and provide the path of the mounted Slackware dvd installer.
If you don't have the installer, then the final choice would be downloding vsftpd package from Slackware packages website: Slackware packages. Then use installpkg command: installpkg [-m] packagename to install vsftpd.
vsftpd stands for very secure file transfer program daemon. It's secure, light and the most popular ftp server at the moment. To configure vsftpd server, let's take a look at the configuration file, vsftpd.conf. Issue vim /etc/vsftpd.conf command to open the configuration file with vim text editor and edit to suite your need (of course you can use any text editor that you prefer).
Note: You must have root privilege to edit and save the file. If you login as a normal user, use 'su -' command and enter root password.
This script is straight forward. There shouldn't be any problem to understand the script even for a first time user. Remove comment (remove #) to allow any rules and options.
Now we must activate vsftpd daemon to start using our ftp server. In slackware, we can do this by editing the super server, inetd.conf. Type vim /etc/inetd.conf and remove comment at the beginning of vsftpd line:
Enter :wq! to save the vsftpd.conf file and exit vim editor.
Now we can restart vsftpd service so that the new configuration take effect. If you are using the default Slackware vsftpd configuration as in the example above, you can restart inetd with the command below:
The inetd super server starts automatically during Slackware booting. If you need to start inetd manually, you can use the same command as above and replace 'restart' with 'start'. See example below:
To test our new ftp server, open a new terminal and login as a normal user. Login to the ftp server by typing ftp at the command prompt. See an example below:
If you can connect to the ftp server, that means you successfully setup vsfpd ftp server in Slackware Linux. Depends on how you configure vsftpd.conf file, you must provide username, whether it's local user account or anonymous. You can find more about ftp client commands at Linux ftp tutorial - FTP client guides.