Created
February 28, 2015 13:56
-
-
Save yamishi13/cf71996789d166705d26 to your computer and use it in GitHub Desktop.
Vsftpd Installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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