• 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: Folder has limited permissions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder has limited permissions.


  • Subject: Re: Folder has limited permissions.
  • From: Macarov Anatoli <email@hidden>
  • Date: Fri, 25 Jul 2008 01:55:01 -0700 (PDT)

When user has a standard account (not administrator), he/she doesn't have rights to create a file in the Directory /Applications/. I try to create a file with the help of function authopen. This code doesn't work:

FILE *pFile = popen("/usr/libexec/authopen -stdoutpipe sys.openfile.readwritecreate./applications/tolea.txt", "w");
if(pFile == NULL){
NSLog(@"NOT Create");
}else{
NSLog(@"Create");
char *data = "Create";
pwrite(data, 1, size(data), pFile);
}
pclose(pFile);

How would be the correct way to do?




      ________________________________________________________
Вы уже с Yahoo!?
Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Folder has limited permissions.
      • From: Andrew Farmer <email@hidden>
    • Re: Folder has limited permissions.
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: XML serialization and deserialization
  • Next by Date: Re: NSString sizeWithAttributes inaccuracy
  • Previous by thread: Re: Folder has limited permissions.
  • Next by thread: Re: Folder has limited permissions.
  • Index(es):
    • Date
    • Thread