This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ds:file_mode_creation_mask [2015/06/29 11:03] tmilosic created |
ds:file_mode_creation_mask [2015/07/13 13:44] (current) tmilosic [Servers we don't have root access to] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | 1====== File Mode Creation Mask ====== | + | ====== File Mode Creation Mask ====== |
A change of the file mode creation mask on our server infrastructure \\ | A change of the file mode creation mask on our server infrastructure \\ | ||
Line 6: | Line 6: | ||
The default permission on Linux systems for newly created files is 777 and 666 \\ | The default permission on Linux systems for newly created files is 777 and 666 \\ | ||
for directories. Setting the user's file mode creation mask is accomplished by | for directories. Setting the user's file mode creation mask is accomplished by | ||
- | < | + | < |
following the standard pattern //user group other//. | following the standard pattern //user group other//. | ||
Line 17: | Line 17: | ||
To check the currently set umask simply type | To check the currently set umask simply type | ||
- | < | + | < |
==== Example ==== | ==== Example ==== | ||
Line 63: | Line 63: | ||
< | < | ||
has been changed to | has been changed to | ||
- | < | + | < |
- | This automatically sets umask to 007 on login. | + | This automatically sets umask to 002 on login. |
===== Servers we don't have root access to ====== | ===== Servers we don't have root access to ====== | ||
Line 73: | Line 73: | ||
by simply adding | by simply adding | ||
< | < | ||
- | umask 007 | + | umask 002 |
</ | </ |