Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: umask questions



M. Helman said:

>Regarding the umask command:
>
>1. Can it be used to change the behaviour of just one folder (so that 
>all files inherit the permissions of the folder)?

No. The umask is an aspect of a user's environment, and affects the
creation of new files by that user.


>2. Why is it not in the man pages (at least on a regular OS X client 
>install)?

Because it is not a stand-alone command, it is a shell builtin. Check
the man page of the shell you are using. eg, from 'man bash':

umask [-p] [-S] [mode]
      The user file-creation mask is set to mode.  If mode begins with
      a  digit,  it is interpreted as an octal number; otherwise it is
      interpreted as a symbolic mode mask similar to that accepted  by
      chmod(1).   If mode is omitted, the current value of the mask is
      printed.  The -S option causes the mask to be  printed  in  sym-
      bolic  form;  the  default output is an octal number.  If the -p
      option is supplied, and mode is omitted, the output is in a form
      that may be reused as input.  The return status is 0 if the mode
      was successfully changed or if no mode  argument  was  supplied,
      and false otherwise.

Cheers
James

-- 
James Tolchard
ICT Services
Christ's College Canterbury
DDI: +64-3-364-6806
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.