Mac app to read system log file

Bill Vlahos bvlahos at mac.com
Wed Nov 24 16:35:19 EST 2010


On Nov 24, 2010, at 1:14 PM, Bob Sneidar wrote:

> 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. 
These are security log files and I can't modify them or have control over them. There are where they are.
> 
> 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. 
It is an in house app to be used by people with admin accounts to do audits
> 
> 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
>> 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
> 
> 
> _______________________________________________
> 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