Re: permissions problem.



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
----------------------------------------------------------------------
.



Relevant Pages

  • Re: File Sharing (again - sorry, Pd)
    ... InTerminal, type umask. ... Back in the good old days, Mac OS X user accounts ... The reason that the file permissions are "resetting" each time the ... that folder inherit the ACLs from the folder. ...
    (uk.comp.sys.mac)
  • Re: umask?
    ... setgid permissions used on your files and directories. ... the default umask value set on your system to 027, ... The shell does simple maths to determine what permissions are used on ... On a directory the maximum permissions will be drwxrwxrwx. ...
    (Fedora)
  • Re: [patch 12/13] ACL umask handling workaround in nfs client
    ... >> the umask locally, and sends the effective permissions to the server. ... >> only the default ACL determines the file's effective permissions. ...
    (Linux-Kernel)
  • Re: default permissions when scping files
    ... >> username take on specific permissions, or barring that, ... I read it to mean that the umask does not affect the execute bit of files ... as the source file has. ...
    (comp.unix.shell)
  • Re: File Permissions problem : Cry for HELP
    ... is something wrnog with the server cause when i upload the same files from ... >> i have a problem with file permissions, each new file i need to create i ... >> Internal Server Error ... > You need to change the umask used when you are saving web files. ...
    (Fedora)