• 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: Permissions when saving file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Permissions when saving file


  • Subject: Re: Permissions when saving file
  • From: Matt Jaffa <email@hidden>
  • Date: Wed, 14 Apr 2004 15:12:52 -0600

I just used int reerere = system(char * cmd)

using chown as the command and it works great, thanks.



On Apr 14, 2004, at 11:57 AM, M. Uli Kusterer wrote:

At 11:03 Uhr -0600 14.04.2004, Matt Jaffa wrote:
Does having the atomically:NO or :YES affect this problem at all?

It could. YES means that a second file will be created, written to, and then the two files' contents will be swapped. NO modifies the file directly. So if you just switched from NO to YES, that may be where your problem is coming from.

However, since your daemon is running as root, have you tried just chowning the file to be owned by that particular user?
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Permissions when saving file
      • From: Pete Yandell <email@hidden>
References: 
 >Permissions when saving file (From: Matt Jaffa <email@hidden>)
 >Re: Permissions when saving file (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: NSString and txt file
  • Next by Date: Re: Double Clicking File Isn't Working to Load NSDocument
  • Previous by thread: Re: Permissions when saving file
  • Next by thread: Re: Permissions when saving file
  • Index(es):
    • Date
    • Thread