• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 2.4.1 locking build directories after build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.4.1 locking build directories after build


  • Subject: Re: Xcode 2.4.1 locking build directories after build
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 31 Aug 2007 09:20:16 -0700

Mike wrote:

>I am running my 1st shell script using sudo which then fires off 3 or 4
>other shell scripts to build my product.

Unix Files 101: the default permissions for creating files and dirs are
affected by the umask value, which is inherited by processes.  The default
value for umask is 022 (octal), which clears the w bits for group and
other.  If you don't change umask, then the default 022 will be applied.

To prevent the masking of group-write, i.e. to allow group-write by
default, the umask value should be 002 (octal).  The shell command for this
is:
  umask 002

You should issue this command in your sudo'ed shell script.  It will then
be inherited by its child processes.


>The build dirs don't have the red lock icon on them, just their x bits
>cleared for group and others (but not for owner) in the filesystem.

Now I'm confused.  You wrote this before:
  ...it is clearing the "w" bit for group and others...

So is it the w bit(s) or the x bit(s) that are cleared?

Please post an ls -lR for a section of the build-tree that's presenting the
problem.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 2.4.1 locking build directories after build
      • From: Mike <email@hidden>
  • Prev by Date: How do I find a method definition?
  • Next by Date: Re: How do I find a method definition?
  • Previous by thread: Re: Xcode 2.4.1 locking build directories after build
  • Next by thread: Re: Xcode 2.4.1 locking build directories after build
  • Index(es):
    • Date
    • Thread