Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 3
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
3. The Linux permissions model
  


The umask page 13 of 23


When a process creates a new file, it specifies the permissions that it would like the new file to have. Often, the mode requested is 0666 (readable and writable by everyone), which is more permissive that we would like. Fortunately, Linux consults something called a "umask" whenever a new file is created. The system uses the umask value to reduce the originally-specified permissions to something more reasonable and secure. You can view your current umask setting by typing umask at the command line:


$ umask
0022

On Linux systems, the umask normally defaults to 0022, which allows others to read your new files (if they can get to them) but not modify them.


Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact