LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-12-2006, 08:53 AM   #16
worzel68
Member
 
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15

>G<

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, 02:24 AM   #17
>G<
LQ Newbie
 
Registered: Jun 2006
Posts: 26

Original Poster
Rep: Reputation: 15
worzel68,

That does help. Thanks
 
  


Reply



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 09:21 AM
what is Umask ? tofee Linux - Newbie 1 03-23-2006 07:05 AM
what is umask osmansm Linux - Newbie 11 12-09-2005 12:30 PM
Umask metallica1973 Linux - Software 4 11-27-2005 01:21 PM
umask knueven7 Linux - Newbie 8 04-18-2003 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 AM.

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