Setting Permissions and fakeroot
Learn to set permissions for files, and use fakeroot to build Debian packages.
We'll cover the following...
Setting permissions
Debian packages contain the installation data as tarballs, and
tar supports storing permissions, group, and ownership information. We
can set these properties for the final package by putting files
with the correct permissions and owner/group into the
debian/<package-name>
directory.
For example, if we want a file /usr/share/hello-debian/scores
with permissions
0664
and group games
, we could do something like this in our debian/rules
file: ...