forked from webmentordev/linux-bash-scripts-and-solutions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup FTP.txt
More file actions
18 lines (15 loc) · 651 Bytes
/
Setup FTP.txt
File metadata and controls
18 lines (15 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ sudo apt update && sudo apt upgrade -y
$ sudo apt install vsftpd
$ sudo systemctl start vsftpd
$ sudo systemctl enable vsftpd
$ sudo ufw allow 20/tcp
$ sudo ufw allow 21/tcp
========================================================================
========================Allow User to upload files======================
========================================================================
$ sudo nano /etc/vsftpd.conf
write_enable=YES (uncomment it then change NO to YES)
chroot_local_user=YES (uncomment)
chroot_list_file=/etc/vsftpd.chroot_list (uncomment)
allow_writeable_chroot=YES (add this line anywhere)
$ sudo systemctl restart vsftpd