vsftpd by default will set all file permission to 600 on upload.
If all your uploaded files have permissions set to 600, you will need to alter the vsftpd config file.
sudo nano /etc/vsftpd.conf
Look for the line #local_umask=022
(You can search in nano with CTRL
+ W
, type local_umask
, press ENTER
)
Uncomment this line by deleting the #
sign so it looks like this vsftpd.conf
local_umask=022
Save and exit (press CTRL
+ X
, press Y
and then press ENTER
)
Restart vsftpd.
sudo service vsftpd restart
Upload a test file via FTP and the permissions should now be set correctly.
Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.
Thanks
Thank Yoy Very Much!!!
it works fine
Thanks