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

Re: How do I control ownership of installed package files?

I may be wrong, but as far as I understood, dh_fixperms is responsible
for changing the owner of the files :

$man dh_fixperms
         [...]                    It makes all files be owned  by
       root, and it removes group and other write permission from
       all  files.   [...]


Steve McWilliams wrote:
> Hello,
> I have read through the debian packaging documentation and am playing
> around with it currently, however I have not yet figured out how to
> control the ownership of files installed from a binary debian package.
> I realize that normally installed package files should be owned by root,
> however I assume that exceptions are allowed for.
> When I create my package, using "dpkg-buildpackage -b -rfakeroot", the
> relevent debian/tmp files are owned by my user account (not root), however
> after running "dpkg -i <package_name>" as root, these files are installed
> with root ownership.
> Note that I used dh_make to create my initial debian control files.  The
> debian/rules file had a reference to dh_fixperms which seemed like it
> might be the culprit here.  However, commenting out the call to dh_fixperms
> does not seem to make a difference.
> I know the problem could be solved via a postinst script, but that doesn't
> seem like a good solution to me.
> Thanks in advance,
> Steve McWilliams
> stevemc@radix.net
> --
> To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

LIMSI-CNRS, BP133, 91403 Orsay, France

Reply to: