[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yee-gads! i almost had it.
24 Feb 2005, Kyle Pointer replied to Nathaniel Reindl:
>> You take the complement of the mode you'd set with
>> chmod. This isn't straight-up arthmetic, either;
>> these are logical operations.
>>
>> In binary:
>>
>> 000 111 110 100 (in octal, 0764, set with chmod)
>> 111 000 001 011 (in octal, 7013, set with umask)
>>
>> You should notice a pattern here. :)
>
> Why doesn't someone just ssh into the box already. This is
> getting far more confusing than it should be. Not that any
> information given has been useless or anything but *I* would
> find a bunch of binary kinda intimidating...
The logical NOT of octal numbers isn't much a thing.
Simply put:
NOT 0 is 7
NOT 1 is 6
NOT 2 is 5
NOT 3 is 4
and vice versa, e.g., NOT 4 is 3.
Thus, NOT 666 is 111, NOT 0764 is 7013.
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.