OT: Elevated admin rights or admin on Mac
Bob Sneidar
bobs at twft.com
Mon Apr 4 13:11:06 EDT 2011
If you are trying to do all this via a terminal shell using ssh, you will have to get admin credentials from the user, then use sudo and use the admin creds in the command. I've never done this but I think this is how all installers actually work which require admin access or root access.
You probably don't have to use sudo (which is a way of masquerading as the root user using administrator credentials). If you are doing this through Livecode commands and functions, then I don't know how you would call the Apple's authentication dialog yourself or do anything using the creds you get back.
It might be easier though to install in the user's library at ~/library as each user already has read write access to that folder. The downside though is that you have to do this for each user the first time they try to use your software. You would have to check for the existence of your files at their location and do the copy if they are not there.
Bob
On Apr 4, 2011, at 3:29 AM, Tiemo Hollmann TB wrote:
> Hi,
>
> I am not used to the rights management on Mac, so I don't know where to
> start looking.
>
> One of my LiveCode programs is installed in 3 steps.
>
> 1. Dragging the prog from the dmg to the app folder
>
> 2. Starting a tool on the CD to copy some videos to:
> /library/preferences/MyFolder
>
> 3. When starting my prog the first time, it creates an ini file at:
> /library/preferences/MyFolder
>
> A customer tried to install my prog with a user with restricted rights. He
> was asked to "elevate to admin rights" (I just don't know the exact pharse),
> but step 2 and 3 failed. When doing the same with the admin user, everything
> worked fine. He told me that installing of other programs worked ok also
> with the restricted user and the additionally "elevating".
>
> The difference to my "installation" probably is that step 2 + 3 are not any
> more an "installation", but standard program job. Probably I could change
> the library path to a user based path, but the the program would be
> restricted to that installation user.
>
> My question: Is it state of the art on Mac, that you should be able to
> install every program also with a standard user, or is it ok to say that my
> program can only be installed by an admin?
>
> Thanks for your experience
>
> Tiemo
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list