set default permission

shadowfax

Registered
By default when I make a file and dir its permission is this:

d rwx r-x r-x
- rwx r-x r-x

is there a way i can config a .config file such that when I make a file it will have permission of the following:

- rwx --- ---

and dir of the following:

d rwx --- ---

thanx
 
You sure can can... add a umask statement to your .cshrc or .profile ...

umask 022 is the for the 755 permissions you listed above

umask 077 is what you were hoping for.

Now this only works when using the shell but there may be a way to set the default permissions of a file when using the gui but I don't know what it is.... perhaps someone else will.
 
slur, unfortunately umask is not an environment variable so your suggestion doesn't work in this context.
 
Back
Top