[wplug] chmod and windows partition

John Harrold jmh17 at pitt.edu
Mon Sep 15 16:55:04 EDT 2003


Sometime in September Rob Jefferson assaulted the keyboard and produced:

| On Mon, 15 Sep 2003, John Harrold wrote:
| 
| > the uid is the user id of root, and the umask contains the permissions of
| > the mount point in octal form (see the manpage for mount). i'm not really
| > sure about the 077 thing. i would think that would turn off read, write and
| > execute permissions for the user but turn them on for the group and the
| > world. i think what you want here is 770.
| 
| It's a mask, not an explicit permission.  In general, the umask is used to
| set the initial permissions of a file, by AND-ing the permissions with the
| complement of the umask (think subtraction). So, the non-negative bits
| are ignored by any file creation/access process.  In the case of 077:
| 
| The owner can do everything (the 0 masks no permissions);
| The group and the world can do nothing (the 7 masks all permissions);
| 
| If the umask were, say, 022, and we created a file, we'd get:
| 
| The owner can do everything (again, the zero masks nothing);
| The group and world can read and execute (the 2 masks writing, leaving the
| 4 for the reading and 1 for execution).
| 
| If you think of it like 777-077=700 or 777-022=755 respectively, it makes
| more sense.
| 
| So in this case, 077 would be right if you didn't want anyone other than
| the user accessing the mount.

thanks for correcting me that makes more sense.

-- 
--------------------------------------------------------------------------
                                               | /"\
 john harrold                                  | \ / ASCII ribbon campaign
      jmh at member.fsf.org                    |  X  against HTML mail
           the most useful idiot               | / \
--------------------------------------------------------------------------
 What difference does it make to the dead, the orphans, and the homeless,
 whether the mad destruction is brought under the name of totalitarianism or
 the holy name of liberty and democracy?
 --Gandhi
--------------------------------------------------------------------------
gpg --keyserver keys.indymedia.org --recv-key F65A739E
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20030915/edfcbd13/attachment-0001.bin


More information about the wplug mailing list