Resetting existing directory permissions
Resetting existing directory permissions
- Subject: Resetting existing directory permissions
- From: "Charles Bailey" <email@hidden>
- Date: Wed, 19 Apr 2006 17:05:05 -0400
Apologies if this is a newbie question, the answer to which I've missed in the archives I searched . . .
I'm trying to work out a "packaged" way to reset permissions on an existing directory. Specifically, some of the machines here run Thunderbird as a local mail client, and to keep movemail happy the permissions on /var/mail need to be reset to 01777. (It's determined to create its lockfile in the spool directory.) That's easy enough to do with chmod, but every time the user does a "Repair Permissions", the change is undone. Fair enough, I thought, let's add a receipt with the new permissions. I created a little package that just "reinstalls" /var/mail with the desired mode; this runs fine. But, as you've not doubt guessed, "Repair Permissions" happily resets the mode to its original value. I assume BaseSystem "overrules" my new receipt (perhaps courtesy of IFPkgFlagIsOS?).
I'm not sure how else to tell the "Repair Permissions" process that the new mode is in fact the correct one. Am I missing a simple trick, or is there no mechanism (short of hacking BaseSystem's Archive.bom
, which sounds like madness) to accomplish this?
--
Regards,
Charles Bailey
Lists: bailey _dot_ charles _at_ gmail _dot_ com
Other: bailey _at_ newman _dot_ upenn _dot_ edu
_______________________________________________
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