Mailinglist Archive: opensuse (3397 mails)

< Previous Next >
RE: [SLE] Alert
  • From: "Greg Wallace" <jgregw@xxxxxxxxxxxxx>
  • Date: Wed, 27 Apr 2005 12:42:39 -0800
  • Message-id: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAFi/9+yIBsUe66x5a7uVsecKAAAAQAAAAR9RUhCN7jUG8cJniPtPRMAEAAAAA@xxxxxxxxxxxxx>

On Wednesday, April 27, 2005 A 5:15 AM, Randall R Schultz wrote:
>On Tuesday 26 April 2005 09:35, Ken Schneider wrote:
>> ...
>>
>> Trying to remember from a failing memory...

>Meaning you forget where the documentation is?


>> umask is the invert of the permissions you want to set. On files a
>> umask of 000 would create files with 666 perms. With 022 it would be
>> 644 and with 044 it would be 622 and last 066 would result in perms
>> of 600.
>>
>> octal
>> 666 = -rw-rw-rw
>> 644 = -rw-r--r-
>> 622 = -rw--w--w (useless as write permission infers read
>> permission)
>> 600 = -rw------

>While I'm sure you mean "implies" (since a permission can not perform
>the logical act of inferring), it's simply not true.

>There are purposes for write-only files and especially for write-only
>directories (in conjunction with execute permission, of course, and
>often the sticky bit, too).


>> Ken Schneider


>Randall Schulz

Wouldn't umask 000 mean 777 under a 000 mask= 777, and umask 022 mean 777
under 022 mask = 755? At the bit level, 000=0000 0000 0000, 777= 0111 0111
0111, and 022=0000 0010 0010? Then umask 022 = 0111 0111 0111 under a mask
of 0000 0010 0010 = 0111 0101 0101 = 755? I believe this is what Anders
Johansson was saying with his 4/26/2005 @ 11:19 AM post.

Greg Wallace



< Previous Next >
Follow Ups
References