How the Files Can Have Different Umask Value When Upload the Ftp Though Vsftpd?

Now, I want upload wordpress files to my VPS by vsftpd, and I know different files have different umask value in wordpress, and when I set the default umask in vsftpd configure file. such as set "local_umask=022", and all upload files umask value will become 644.

1 Answer

Umask is a filter (a mask, hence the name), not the actual permissions. Writing a file with requested permissions 0666 and an umask of 022 will result in actual permissions 0644.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest