Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 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.



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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