Ubuntu – File ownership in debian packages

debian

I just curious about managing file ownership in debian packages. How to preserve file ownership during building deb packages. I want a files own by a specific user when I install them.

Best Answer

Have a look at dh_fixperms. Either don't run it or use chown after you call dh_fixperms. I guess that another way would be to run chown in postinst.