• 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: cp creates directory with different permissions -- then reverts them
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp creates directory with different permissions -- then reverts them


  • Subject: Re: cp creates directory with different permissions -- then reverts them
  • From: Michael Smith <email@hidden>
  • Date: Mon, 30 Oct 2006 10:36:13 -0800


On Oct 30, 2006, at 9:01 AM, Jeffrey Ellis wrote:

So here's the problem I'm having. In the app I'm doing, I use a call to cp
to make the copy. But unlike when using cp in terminal, somehow the
directory it's creating is a bit worse than normal. It has only System as
owner, and no access for anyone else. drwx------ chmod 700. Of course, this
changes when the copy is finished, but the user will be alerted as to the
initial settings of the folder, as it appears with a great big "No Access"
icon.


Can you suggest what I might be doing to cause this?

The initial mode for the folder will be modified by the process umask. It sounds
like yours is 0700 or similar.


The real question might be "how do you tell the Finder to resync its view of the
folder that's been copied", and there I fear I can't help you. Other folks here
surely can, though.


 = Mike

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


  • Follow-Ups:
    • Re: cp creates directory with different permissions -- then reverts them
      • From: Michael Cashwell <email@hidden>
References: 
 >Re: cp creates directory with different permissions -- then reverts them (From: Jeffrey Ellis <email@hidden>)

  • Prev by Date: Re: cp creates directory with different permissions -- then reverts them
  • Next by Date: Re: cp creates directory with different permissions -- then reverts them
  • Previous by thread: Re: cp creates directory with different permissions -- then reverts them
  • Next by thread: Re: cp creates directory with different permissions -- then reverts them
  • Index(es):
    • Date
    • Thread