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

Re: A question on setting setuid bit

On Wed, Jul 05, 2006 at 04:39:12PM +1000, Matthew Palmer wrote:
> dpkg-statoverride is a tool for the system administrator to specify a
> different mode or ownership for a file to that which is provided in the
> package.  It is not meant to be used by the package.

there are cases where it's appropriate for a package to use it.  for
example, if the package creates the user that is supposed to own a file,
and later changes the ownership to that user in the maintscripts.  in
this case it would be appropriate to use this tool to check if the
local admin has overrided the permissions, and if so, keep the
permissions respected.

but otherwise:

> The correct answer, in this case, is to ensure that the file in the package
> has the appropriate permissions, and then use the -X option to dh_fixperms
> to ensure that fixperms doesn't turn the permissions back to the default.

this would be the reasonable approach if the user already exists.



Attachment: signature.asc
Description: Digital signature

Reply to: