Install gdebi package:
apt-get install gdebi
Add Source
echo "deb http://ftp.us.debian.org/debian jessie main contrib non-free" >> /etc/apt/sources.list
Download the the package:
apt-get download vsftpd
Install the package:
gdebi vsftpd.deb
Verify package version installed
dpkg -s vsftpd
Modify cnf file accordingly
echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf
Restart service for changes to take place:
service vsftpd start
Change default permission for uploaded files, here the trick
change umask values in conf
now if umask value is 000 that mean file uploaded will be with permission 777, therefore if u want to set the permission for the file to 755 just do the maths 777-755 = 022 , set this value for umask.
apt-get install gdebi
Add Source
echo "deb http://ftp.us.debian.org/debian jessie main contrib non-free" >> /etc/apt/sources.list
Download the the package:
apt-get download vsftpd
Install the package:
gdebi vsftpd.deb
Verify package version installed
dpkg -s vsftpd
Modify cnf file accordingly
echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf
Restart service for changes to take place:
service vsftpd start
Change default permission for uploaded files, here the trick
change umask values in conf
now if umask value is 000 that mean file uploaded will be with permission 777, therefore if u want to set the permission for the file to 755 just do the maths 777-755 = 022 , set this value for umask.
No comments:
Post a Comment