Pages

15 June 2010

Linux FTP Server Setup

This tutorial is concentrating on setting up a real environment of FTP server.

To configure FTP server in Linux vsftpd is  a default package which I am using.

First of all install the vsftpd package on your Linux server. I am using CentOS Linux.

#yum install vsftpd

Now entering in vsftpd.conf  using vim command


#vim /etc/vsftpd/vsftpd.conf

# Allow anonymous FTP?
# anonymous_enable=YES

# Uncomment this to allow local users to log in.
local_enable=YES

Restart the vsftpd service

#chkconfig vsfftp on
#service vsftpd restart

Now create a users group named ftpusers
#groupadd ftpusers

Create a directory on root

#mkdir /www


Make the directory accessible to the ftpusers group:  
 #chmod 775 /www
#chown root:ftpusers /www


Now finally add ftp users with default directory www
#useradd -g ftpusers -d /www user01
#passwd user001

Your FTP server has configured now :

Now testing phase

login to ftp server with command mode

#ftp localhost
username - user01
password - your password

Supply pwd command to see your home directory


Always remember to add firewall exception for FTP service to access from remote client

No comments: