Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-23-2006, 06:50 AM   #1
Registered: Mar 2006
Posts: 41

Rep: Reputation: 15
what is Umask ?

hi ,

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

thanks ..
Old 03-23-2006, 07:05 AM   #2
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
umask help glabiche Linux - Security 1 06-07-2005 08:20 AM
umask wbdune Linux - Newbie 5 10-14-2003 01:53 AM
umask=0,0,0 demmylls Linux - General 2 09-15-2003 12:13 PM
Umask robyso Linux - Security 1 07-14-2003 02:33 PM
umask Spaz17 Linux - Newbie 1 07-04-2003 10:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration