[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to handle permissions of configuration files in maintainer scripts?



On Tue, 05 Apr 2005, Frank Küster wrote:
> when a maintainer script creates and possibly edits configuration files
> (of course not conffiles), what is the best way to set proper
> permissions (e.g. change ownership to a daemon user created by the
> package), while still preserving local admin's changes?

Check dpkg-statoverride database (using --list).  If there is anything in
there, use that information.  If not, set your defaults using
dpkg-statoverride --update.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: