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...
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.