# Installer un serveur ftp (vsftpd)



#### Installer vsftpd:

```bash
$ sudo apt install vsftpd 
```

#### Configurer vsftpd:

```bash
$ sudo mv -v /etc/vsftpd.conf /etc/vsftpd.conf.bk
$ sudo touch /etc/vsftpd.conf

$ sudo nano /etc/vsftpd.conf
```

```nginx
listen=YES
listen_ipv6=NO
connect_from_port_20=YES

anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
secure_chroot_dir=/var/run/vsftpd/empty

pam_service_name=vsftpd

pasv_enable=YES
pasv_min_port=40000
pasv_max_port=45000

userlist_enable=YES
userlist_file=/etc/vsftpd.userlist

## userlist_deny=NO
```

#### Liste des utilisateurs:

```bash
$ sudo nano /etc/vsftpd.userlist
```

#### Redémarrer vsftpd:

```bash
$ sudo systemctl restart vsftpd
$ sudo systemctl status vsftpd
```



https://linuxhint.com/setup_ftp_server_vsftpd_ubuntu/
https://doc.ubuntu-fr.org/vsftpd
https://vitux.com/install-vsftpd-ftp-server-tls-ubuntu/