Saturday, December 18, 2010

How to install FTP with vsftpd.

Very easy to configure. recommended!!


First install via apt-get
$sudo apt-get install vsftpd
Let's have it back up before doing anything is recommend!
$sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak
Now begin to configure!
Disable anonymous login and enable local users login, give them write permission.
anonymous_enable=NO
# Let local users login
# If you connect from the internet with local users, you should enable TLS/SSL/FTPS
local_enable=YES

# Write permissions
write_enable=YES
To Deny some users to login
userlist_deny=YES
userlist_file=/etc/vsftpd.denied_users
In the file /etc/vsftpd.denied_users add the username of the users that can't login. One username per line.

To Allow some users to login
userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/vsftpd.allowed_users
In the file /etc/vsftpd.allowed_users add the username of the users that can login. One username per line.

TLS/SSL/FTPS
Add these code at the end of file.
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
Additional Options
# Show hidden files and the "." and ".." folders.
# Useful to not write over hidden files:
force_dot_files=YES

# Hide the info about the owner (user and group) of the files.
hide_ids=YES

# Connection limit for each IP:
max_per_ip=3

# Maximum number of clients:
max_clients=5
Then, have it applied new configuration.
$sudo /etc/init.d/vsftpd restart 
That's all the configurations I've applied to my ftp server.
If you need more option, please kindly visit this site which can provides you for further information.
Ubuntu Forum 


Credits : epimeteo from Ubuntu Forum. Thx :)

No comments:

Post a Comment