• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Default Permissions in Unix

hoppa

Senior member
When I create files on a remote server the permissions are always really restrictive and I have to change them for every single file and folder I make, which is a pain. How can I change it so that files and folders will all default to 755 upon creation?
 
Most systems set a default umask of 0022, which produce directories with 755 permissions (= 777 & 022, "&" = bitwise AND) and files with 644 permissions (= 666 & 022). If you type "umask" with no arguments, it will show you what your current umask is. If it's already 0022 (or 022), then the permissions are being forced by the remote server (SMB/CIFS probably?) and there's nothing you can do about it other than change them manually.
 
It was set to 77. I changed it to 755 (umask 755) though it hasn't seemed to do anything. I guess that's not right?
 
Back
Top