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 06-12-2006, 09:53 AM   #16
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15


There is still some confusion about the differeence between a umask and a file permission.

the formula goes like this:

777 - umask = file permission

so the umask is not the same thing as a file permission

666 is usually a file permission meaning rw for owner, group and public. (rw-rw-rw-)

to acheive a file permisssion of 666 you would use a umask of 111

777 - 111 = 666

So for a umask of 022

777 - 022 = 755 which means rwx for owner, r-x for group, r-x for public, combined it is rwxr-xr-x

And for umask 002

777 -002 =775 which means rwx for owner, rwx for group, r-x for public, combined it is rwxrwxr-x

hope this helps.
Old 06-13-2006, 03:24 AM   #17
LQ Newbie
Registered: Jun 2006
Posts: 26

Original Poster
Rep: Reputation: 15

That does help. Thanks


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
When and why to use Umask ? tofee Linux - Newbie 4 11-26-2009 10:21 AM
what is Umask ? tofee Linux - Newbie 1 03-23-2006 08:05 AM
what is umask osmansm Linux - Newbie 11 12-09-2005 01:30 PM
Umask metallica1973 Linux - Software 4 11-27-2005 02:21 PM
umask knueven7 Linux - Newbie 8 04-18-2003 08:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration