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

Last updated on

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


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.

1 Star2 Stars3 Stars4 Stars5 Stars 4.67 (6 votes)

Let me know in the comments if this helped. Follow me on Twitter, Facebook and YouTube.

p.s. I increased my AdSense revenue by 68% using AI 🤖. Read my Ezoic review to find out how.

1 reply

newest oldest
Notify of
3 years ago

it works fine