Skip to content
Fraser Harris edited this page Apr 1, 2015 · 13 revisions

Connecting to FTP

Use the generic key in Dropbox/Willet/keys, change to root to escape directory sandbox:

ssh -i willet-generic.pem [email protected]
sudo su

Managing FTP Users

Create new user:

useradd -d /str/ftp/<directory> -s /sbin/nologin <ftp_user_name>
passwd <ftp_user_name>

Edit user and delete a user with: usermod, userdel

To add the new user to the shell:

echo '/sbin/nologin' >> /etc/shells 

Managing FTP Settings

In /etc edit vsftpd.conf. Reference: vsFTPd docs.

Remember to restart the process to activate changes: service vsftpd restart

Create New FTP

Start with these instructions. Follow appropriate instructions for installing s3fs for your OS flavor. Use this to mount s3fs:

/usr/bin/s3fs -o allow_other -o default_acl="public-read-write" -o use_rrs=1 ftp.secondfunnel.com /str/ftp

Oh, and don't forget to create the SSL keys:

openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout /etc/ssl/private/vsftpd.key -out /etc/ssl/private/vsftpd.pem

Note: after every reboot you will need to remount s3fs.