vsftpd: Why are the permissions for all my uploaded files set to 600?

Last updated on | 3 replies

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.

3 replies

Leave a reply

Your email address will not be published. Required fields are marked *