ryu's blog just a few lines of code

29Jun/090

HOWTO: Install/Configure vsftpd FTP Server on Ubuntu Server

Log in as root or use 'sudo' to execute the command as root user.

# apt-get install vsftpd

This will install the FTP Server. Now we have to change the config file. You will find the config file in the /etc directory. Use vim or nano to open and edit this file.

# vi /etc/vsftpd.conf

If you have problems using this editors, you could read this HOWTO for vim, or this HOWTO for nano.

Change the following lines. Be sure to remove the # in front, if there is one, to uncomment the line.

anonymous_enable=NO

This will avoid anonymous FTP Login.

local_enable=YES

This will allow local unix users to use the FTP Server. All User's can login with their unix user and password via FTP.

write_enable=YES

This will make writing possible for all users.

ftpd_banner=*****

Use any sentence you like instead of the asterisks. This welcome message will be displayed every time a user logs on the FTP Server.

chroot_local_user=YES

Lock each user in it's home directory. This will prevent, that a user can see files, that do not belong to him.

Now save the config file.

# /etc/init.d/vsftpd restart

In the end you have to restart your new FTP Server, in order to make the config file changes take effect.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.