This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
ftp-install [2020/12/02 09:15] – gwsadmin | ftp-install [2020/12/04 10:50] – gwsadmin | ||
---|---|---|---|
Line 4: | Line 4: | ||
<code language-bash> | <code language-bash> | ||
- | 'sudo apt update && sudo apt install vsftpd | + | sudo apt update && sudo apt install vsftpd |
Line 82: | Line 82: | ||
* Paste in the following | * Paste in the following | ||
- | < | + | < |
- | 'listen=NO | + | listen=NO |
listen_ipv6=YES | listen_ipv6=YES | ||
anonymous_enable=NO | anonymous_enable=NO | ||
Line 99: | Line 99: | ||
pasv_min_port=40000 | pasv_min_port=40000 | ||
pasv_max_port=50000 | pasv_max_port=50000 | ||
+ | allow_writeable_chroot=YES | ||
</ | </ | ||
Line 120: | Line 120: | ||
<code bash> | <code bash> | ||
sudo groupadd www-pub | sudo groupadd www-pub | ||
+ | |||
</ | </ | ||
+ | |||
* Add FTP user AND www-data to the group | * Add FTP user AND www-data to the group | ||
Line 128: | Line 130: | ||
usermod -a -G www-pub www-data | usermod -a -G www-pub www-data | ||
+ | |||
</ | </ | ||
+ | |||
* Check that the users are part of all groups | * Check that the users are part of all groups | ||
Line 136: | Line 140: | ||
sudo groups www-data | sudo groups www-data | ||
+ | |||
</ | </ | ||
+ | |||
* Change ownership of everything under the web directory | * Change ownership of everything under the web directory | ||
<code bash> | <code bash> | ||
sudo chown -R root: | sudo chown -R root: | ||
+ | |||
</ | </ | ||
+ | |||
* Then change the permissions (or certain web sites won't work - such as NextCloud or WHMCS) | * Then change the permissions (or certain web sites won't work - such as NextCloud or WHMCS) | ||
<code bash> | <code bash> | ||
sudo chmod 2775 / | sudo chmod 2775 / | ||
+ | |||
</ | </ | ||
+ | |||
* In detail, this is what each number is doing:// | * In detail, this is what each number is doing:// | ||