Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 15, 2008, 03:28 PM   #1
swimlikehell
macrumors member
 
Join Date: Aug 2006
Question about file authorization

I have an updater which prompts the user for authorization, but it seems when it updates the files the new files are set with the admin authorization. I was wondering if anyone had any experience with this sort of application and can give me some suggestions of the authorization flags or anything I need to do for this to work. I used the example on apples web site:

developer.apple.com/documentation/Security/Conceptual/authorization_concepts/03authtasks/chapter_3_section_4.html#//apple_ref/doc/uid/TP30000995-CH206-TPXREF33

To get what I currently have. any suggestions would be much appreciated.
swimlikehell is offline   0 Reply With Quote
Old Apr 15, 2008, 03:39 PM   #2
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Quote:
Originally Posted by swimlikehell View Post
but it seems when it updates the files the new files are set with the admin authorization.
What's wrong with that?
__________________
If they have to tell you every day they are fair you can bet they arent, if they tell you they are balanced then you should know they are not - Don't Hurt me
Eraserhead is offline   0 Reply With Quote
Old Apr 15, 2008, 03:55 PM   #3
swimlikehell
Thread Starter
macrumors member
 
Join Date: Aug 2006
If they do not have write privileges to the app they are updating the privileges should stay the same for that app.
swimlikehell is offline   0 Reply With Quote
Old Apr 15, 2008, 04:05 PM   #4
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Ah, I see what your saying.

As a command line "hack" you could call chmod afterwards to set the correct permissions, but there may be a better way.
__________________
If they have to tell you every day they are fair you can bet they arent, if they tell you they are balanced then you should know they are not - Don't Hurt me
Eraserhead is offline   0 Reply With Quote
Old Apr 15, 2008, 04:23 PM   #5
swimlikehell
Thread Starter
macrumors member
 
Join Date: Aug 2006
I meant to say the new files have root privileges not admin privileges, I am aware of the chmode command line command but I was looking for an idea that I can put in my code not a hack. Thank you for your help.
swimlikehell is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Snow Leopard File Vault Question and Basic System Password Question & Time Machine? GordonGekko999 Mac Basics and Help 0 Oct 25, 2013 06:06 AM
CLLocationManager Authorization erdinc27 iPhone/iPad Programming 4 May 22, 2013 09:50 AM
Pending authorization question kazpod iPhone 5 Oct 1, 2012 12:46 PM
UPS - Authorization Release dyzfnctional iPhone 0 Sep 21, 2012 03:57 AM
Authorization in Sandboxed App? ArtOfWarfare Mac Programming 4 Jun 14, 2012 10:13 AM

Forum Jump

All times are GMT -5. The time now is 04:20 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC