Re: permissions problem.
- From: Sylvain Robitaille <syl@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 Apr 2012 16:29:12 +0000 (UTC)
On Thu, 26 Apr 2012 10:41:33 -0400, Lew Pitcher wrote:
Let's try this again....
Thus, if your create/open/chmod mode were
731
and you had a umask of
365
you would wind up with permissions of
414
This caught my eye enough to examine more carefully. My calculation
says "410". I'm actually not sure how you figure "414" ...
mode -> 111 011 001 (731)^
umask -> 011 110 101 (365)
====================
perm -> 100 001 100 (414)
| | |
+-----+--+-- These bits come from the mode
The rest were zeroed out by umask
|
+- where does this one come from? (it isn't in the
original mode setting ...)
unruh's explanation of "mode AND (NOT umask)" is as simple and clear as
I've seen.
--
----------------------------------------------------------------------
Sylvain Robitaille syl@xxxxxxxxxxxxxxxxx
Systems analyst / AITS Concordia University
Faculty of Engineering and Computer Science Montreal, Quebec, Canada
----------------------------------------------------------------------
.
- References:
- permissions problem.
- From: The Natural Philosopher
- Re: permissions problem.
- From: anonymous
- Re: permissions problem.
- From: Lew Pitcher
- Re: permissions problem.
- From: Robert Riches
- Re: permissions problem.
- From: Lew Pitcher
- permissions problem.
- Prev by Date: Re: permissions problem.
- Next by Date: Re: debian gems
- Previous by thread: Re: permissions problem.
- Next by thread: Re: permissions problem.
- Index(es):
Relevant Pages
|