django-orchestra/scripts/services/vsftpd.md

31 lines
932 B
Markdown
Raw Normal View History

2014-05-08 16:59:35 +00:00
VsFTPd with System Users
========================
1. Install `vsftpd`
```bash
apt-get install vsftpd
```
2. Make some configurations
```bash
2014-10-10 14:39:46 +00:00
sed -i "s/^anonymous_enable=YES/anonymous_enable=NO/" /etc/vsftpd.conf
sed -i "s/^#local_enable=YES/local_enable=YES/" /etc/vsftpd.conf
sed -i "s/^#write_enable=YES/write_enable=YES/" /etc/vsftpd.conf
# sed -i "s/^#chroot_local_user=YES/chroot_local_user=YES/" /etc/vsftpd.conf
sed -i "s/^#local_umask=022/local_umask=022/" /etc/vsftpd.conf
2014-10-03 14:02:11 +00:00
2014-10-02 15:58:27 +00:00
echo '/dev/null' >> /etc/shells
2014-05-08 16:59:35 +00:00
```
2014-10-02 15:58:27 +00:00
# TODO https://www.benscobie.com/fixing-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot/#comment-2051
Define option passwd_chroot_enable=yes in configuration file and change in /etc/passwd file user home directory from «/home/user» to «/home/./user» (w/o quotes).
2014-05-08 16:59:35 +00:00
3. Apply changes
```bash
/etc/init.d/vsftpd restart
```