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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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.