Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vsftpd Installer
#!/bin/bash
#actualiza repos e instala vsftpd
sudo apt-get update
sudo apt-get install vsftpd -y
#remplaza opcioes para activar/desactivar en el archivo de configuracion
sudo sed -i -e 's/anonymous_enable=YES/anonymous_enable=NO/g' /etc/vsftpd.conf
sudo sed -i -e 's/#local_enable=YES/local_enable=YES/g' /etc/vsftpd.conf
sudo sed -i -e 's/#write_enable=YES/write_enable=YES/g' /etc/vsftpd.conf
sudo sed -i -e 's/#chroot_local_user=YES/chroot_local_user=YES/g' /etc/vsftpd.conf
usuario=$(logname)
mkdir /home/$usuario/files
sudo chown root:root /home/$usuario
#reiniciar el servicio
sudo service vsftpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment