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.
Example:
$ umask
0000
$ touch tmp.txt
$ ls -l tmp.txt
-rw-rw-rw- 1 <name> <name> 0 2009-11-16 19:41 tmp.txt
I also have my etc/profile set to umask 000. Is there anywhere else this setting might live?
I don't necessarily want to leave it at 777, and I'd probably set the umask back to something more restrictive. In the meantime, though, I just wanted to know how it worked.
– Nov 17 '09 at 00:02#!shebang. – Ryan C. Thompson Nov 17 '09 at 06:09