What is creating the log files and where? If you control the creation of the 
log files, save them somewhere that all users have read only access to. If not 
then things become really problematic here. 

First, sudo is not going to work for a non-admin account. It only works when 
you log into a session with admin credentials. Second, you would have to know 
the admin credentials first, before you could sudo. If this is for a commercial 
app then I think you are out of luck. 

I suppose you could ask the user for admin credentials, then use those creds to 
shell out and change the permissions of the log files in question but YIKES! 
Rather, you should change the permissions on the folder containing the log 
files. 

Other than that you will have to ask your end users to change the permissions 
themselves, or have an Administrator do it. Messy. 

Bob


On Nov 24, 2010, at 12:04 PM, Bill Vlahos wrote:

> I have a Mac application to read log files that need administrative 
> permission (sudo) to read. How can I prompt for this?
> 
> Bill Vlahos
> _________________
> InfoWallet (http://www.infowallet.com) is about keeping your important life 
> information with you, accessible, and secure.
> 
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to