Posts Tagged ‘ftp’

Adding SSL encryption to vsftpd

There may be some situations where you want to encrypt FTP traffic with SSL certificates rather than using SFTP with SSH. Using vsftpd with SSL encryption is quite easy, and here’s how it’s done:
First, you’ll need to make a new self-signed SSL certificate (if you don’t have a key and certificate available already):
openssl req [...]

500 OOPS error from vsftpd

If you find yourself with the ever-so-peculiar 500 OOPS error from vsftpd when you attempt to login over SSH, there could be a few different things at play. Generally, this is the type of error you will get:
500 OOPS: cannot change directory:/home/someuser
500 OOPS: child died
You can search for a solution in this order
Home Directory
Does [...]

Show hidden dot files in proftpd

If you can’t see hidden files in proftpd (the files beginning with a dot, like .htaccess), you can enable the option in your client. However, you can force the files to be displayed in almost all clients with a server wide variable in your proftpd.conf:
ListOptions -a
Make sure to restart proftpd afterwards and re-connect to [...]

Add SSL/TLS support to proftpd

To enable SSL/TLS support in proftpd, add the following to the proftpd.conf file:
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/ftpd/tls.log
TLSRequired off
TLSRSACertificateFile /usr/share/ssl/certs/server.crt
TLSRSACertificateKeyFile /usr/share/ssl/private/server.key
TLSCACertificateFile /usr/share/ssl/certs/cacert.crt
TLSVerifyClient off
TLSRenegotiate required off
</IfModule>
To [...]

Adding chrooted FTP users outside of Plesk

To add a chrooted FTP user outside of Plesk properly, you need to:

Create the user with the home directory as the root of what they can access
Give the user a password
Make their primary group psacln
Add them to the psaserv group as well

# useradd username -d /var/www/html/website/slideshow/
# echo “password” | passwd username –stdin
Changing password for user [...]