User Tools

Site Tools


ds:file_mode_creation_mask

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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
-<code>umask</code>+<code>umask <octal mask></code>
 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
-<code>umask</code>+<code>umask</code> without argument.
  
 ==== Example ==== ==== Example ====
Line 63: Line 63:
 <code>umask 022</code> <code>umask 022</code>
 has been changed to has been changed to
-<code>umask 007</code>+<code>umask 002</code>
  
-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
 <code> <code>
-umask 007+umask 002
 </code> </code>
ds/file_mode_creation_mask.1435568609.txt.gz · Last modified: 2015/06/29 11:03 by tmilosic