First install via apt-get
$sudo apt-get install vsftpdLet's have it back up before doing anything is recommend!
$sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bakNow begin to configure!
Disable anonymous login and enable local users login, give them write permission.
To Deny some users to loginanonymous_enable=NO# Let local users login# If you connect from the internet with local users, you should enable TLS/SSL/FTPSlocal_enable=YES
# Write permissionswrite_enable=YES
In the file /etc/vsftpd.denied_users add the username of the users that can't login. One username per line.userlist_deny=YESuserlist_file=/etc/vsftpd.denied_users
To Allow some users to login
In the file /etc/vsftpd.allowed_users add the username of the users that can login. One username per line.userlist_deny=NOuserlist_enable=YESuserlist_file=/etc/vsftpd.allowed_users
TLS/SSL/FTPS
Add these code at the end of file.
Additional Optionsssl_enable=YESallow_anon_ssl=NOforce_local_data_ssl=YESforce_local_logins_ssl=YESssl_tlsv1=YESssl_sslv2=YESssl_sslv3=YES
Then, have it applied new configuration.# 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
$sudo /etc/init.d/vsftpd restartThat'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