• 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: How to uncheck the Ignore ownership on this volume programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to uncheck the Ignore ownership on this volume programatically


  • Subject: Re: How to uncheck the Ignore ownership on this volume programatically
  • From: "Elango C" <email@hidden>
  • Date: Fri, 17 Mar 2006 18:17:49 +0530

Hi greg,

This command is getting called in the tool and the tool has got a root
privilleges to perform the copying of system/OS files etc... As per
your comment the geteuid returns 0 only.  Still I am having this
issue.

Regards,
--Elango C

On 3/17/06, Greg Herlihy <email@hidden> wrote:
> If you are seeing an error message "### You must be root to perform this
> operation###", then chances are your program is not running as root when it
> attempts to call vsdbutil. At the very least the program could check for
> itself whether it is running as root by testing whether geteuid returns 0.
>
> Furthermore, from your e-mail it seems that you think that an administrator
> account has root privileges. It does not. An administrator account can
> acquire root privileges (which requires re-authenticating) - but otherwise
> administrator privileges are not the same as root privileges (and wisely
> so).
>
> Since these UNIX permission-related topics are not really Cocoa-related, I
> would recommend reading "Performing Privileged Operations With Authorization
> Services" found here:
> http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/index.html
> to find out how your app can go about acquiring the authorization it needs
> to execute vsdbutil.
>
> Greg
>
> ----- Original Message -----
> From: "Elango C" <email@hidden>
> To: <email@hidden>
> Sent: Thursday, March 16, 2006 10:49 PM
> Subject: How to uncheck the Ignore ownership on this volume programatically
>
>
> Hi all,
>
> I am writing a backup application for Mac OS Tiger (Intel and PPC)
> like a carbon copy cloner.  Now I have an issue,  when I copy the
> files from my root volume to a newly created volume; the file
> permission got messed up otherwise the files whcih I copied doesnt
> have the ownership and permission what i had in the source volume.
>
> I found more articles about the problem; people have said to use the
> "vsdbutil" command to preserve the privilleges to the volume (i.e.
> vsdbutil -a <volume name>). But I need to do it in programatical way.
>
> Note: I have also tried to fork the process in my C code but it
> returns  the following
>
> ### You must be root to perform this operation###
>
> But I am doing this process with the Administrator / root privilleges
> in my tool.
>
> Can any one help me on this regard.
>
> Regards,
> --Elango C
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to uncheck the Ignore ownership on this volume programatically (From: "Elango C" <email@hidden>)
 >Re: How to uncheck the Ignore ownership on this volume programatically (From: "Greg Herlihy" <email@hidden>)

  • Prev by Date: QTMovieView and NSView
  • Next by Date: RE: QTMovieView and NSView
  • Previous by thread: Re: How to uncheck the Ignore ownership on this volume programatically
  • Next by thread: Re: How to uncheck the Ignore ownership on this volume programatically
  • Index(es):
    • Date
    • Thread