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

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.

1 Star2 Stars3 Stars4 Stars5 Stars 4.71 (7 votes)

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

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

2 replies

avatar
  Subscribe  
newest oldest
Notify of
Alejandro De Castro
Guest
Alejandro De Castro
Alejandro De Castro
3 months ago

Thank Yoy Very Much!!!

sukhjinder
Guest
sukhjinder
sukhjinder
3 years ago

it works fine
Thanks