Skip to content

Instantly share code, notes, and snippets.

@blue-bird1
Forked from yamishi13/vsftpd.sh
Last active October 9, 2018 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blue-bird1/19c161184424aaa138fc57bd90b1ddfe to your computer and use it in GitHub Desktop.
Save blue-bird1/19c161184424aaa138fc57bd90b1ddfe to your computer and use it in GitHub Desktop.
Vsftpd Installer #debian
#!/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