I can create a .deb package successfully with all the file owner fields set correctly. Unfortunately the permission fields are ignores. For example I install one file with:

install -v -cm 400 -o ${user} *.pl ${DESTDIR}${dir}

but all the files in the package are 644 anyways. How can I force different permissions?

link|improve this question

64% accept rate
feedback

1 Answer

up vote 2 down vote accepted

Find the dh_fixperms line in debian/rules (should be in the binary-arch or binary-indep target, as appropriate) and add -Xpath/to/file to that call.

SEE ALSO

dh_fixperms(1)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.