Re: Owner/Group for files put in ~/Library folders
Re: Owner/Group for files put in ~/Library folders
- Subject: Re: Owner/Group for files put in ~/Library folders
- From: Howard Moon <email@hidden>
- Date: Wed, 25 Aug 2010 10:16:24 -0700
Hi all,
Greg's reply below led me to ask my bosses why we need to install a file that is not strictly needed and will simply get created if the program options are ever saved. The answer was, well, we don't! So I'm removing that pert of the installation, and now our installers are cleaner (and can be performed remotely, as Greg had mentioned).
Thanks all (esp. Greg),
Howard
On Aug 25, 2010, at 9:52 AM, Howard Moon wrote:
>
> Hi Greg,
>
> the file is simply some program options set on a per-user basis. Our audio plug-in reads it when starting up, and saves it if the user makes changes to the in-program options. We do have default values for all the options in this file, so the file isn't *strictly* required prior to running, but I was asked to give them a default file when installing, so I am.
>
> My question is simple enough: is using root/admin ok, or does my installer (or the script that copies the file from the temp folder to its final location) need to change the owner/group, and if so, to what?
>
> Thanks,
> Howard
>
> On Aug 25, 2010, at 9:31 AM, Greg Neagle wrote:
>
>> Why are you writing to ~/Library/Application Support as part of an install?
>>
>> What happens if a machine has two users, and user1 installs your package, logs out, then user2 logs in and tries to use your software?
>>
>> What happens if the software is installed by an automated process (Casper, LANrev, munki, ARD, etc) and there is no current user?
>>
>> If the file is needed, why can't it be in /Library/Application Support?
>>
>> Or why can't the software generate it on first launch if it is missing from the current user's home folder? This would cover all users of the machine, even those created after the software is installed.
>>
>> -Greg
>>
>> On Aug 25, 2010, at 8:55 AM, Howard Moon wrote:
>>
>>> Hi,
>>>
>>> following the FAQs in the Iceberg User Guide and the advice of folks here, I am able to install a text file into a folder under ~/Library/Application Support (and not overwrite it if it exists). But after installing, I see that the Owner and Group for that file are "root" and "admin", respectively. (Which makes sense, since that's what I set in Iceberg.)
>>>
>>> But if I create a file in that same location myself, (using TextEdit, for example), then the Owner and group are both "Howard".
>>>
>>> Is this a problem? Do I need to set the Owner and Group differently on a user's machine? If so, how do I set them in Iceberg (or in my Postflight script) to be the actual user whose home folder it is stored under?
>>>
>>> Thanks,
>>> Howard
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Installer-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.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden