LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what is Umask ? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-umask-427621/)

tofee 03-23-2006 06:50 AM

what is Umask ?
 
hi ,

what is the concept behind umask ? why is it used ? pls make it clear to me.

thanks ..

ethics 03-23-2006 07:05 AM

umask sets the default permissions for files and directories (RWX).

Basically it's a mask that combines with 0666 for files and 0777 for directories to give default permissions.

I think of it as subtracting the mask from the highest value gives you your new permissions on the files.

so umask 0022 will give you 0644 on files and 0755 on directories


All times are GMT -5. The time now is 02:49 AM.