Home » Questions » Computers [ Ask a new question ]

Grant full permissions by default on Ubuntu

Grant full permissions by default on Ubuntu

I'm trying to set the default permissions on my Ubuntu installation. I'd like all files created to have 755 permissions. Currently, they have 666, even though I have my umask set to 000.

Asked by: Guest | Views: 18
Total answers/comments: 1
Guest [Entry]

"No. Files by default will not receive execute permissions no matter what the umask is. This is a security feature. If you want any files to have execute permissions you will have to explicitly set that with chmod.

666 is


as you can see the x bit is missing from the owner, group, and other's permissions (which is worth 1).

directories can receive 777 with a 000 umask because executing a directory allows you to change into it. This doesn't impose a security risk like executing files (scripts, binaries, etc)."