dh_fixperms(1)

dh_fixperms1

Fix permissions of files in package build directories

Usage

dh_fixperms [debhelper options] [-Xitem]

Overview

dh_fixperms is a debhelper program that is responsible for setting the permissions of files and directories in package build directories to a sane state -- a state that complies with Debian policy.

dh_fixperms makes all files in usr/share/doc in the package build directory (excluding files in the examples/ directory) be mode 644. It also changes the permissions of all man pages to mode 644. It removes group and other write permission from all files. It removes execute permissions from any libraries, headers, Perl modules, or desktop files that have it set. It makes all files in the standard bin and sbin directories, usr/games/ and etc/init.d executable (since v4). Finally, it removes the setuid and setgid bits from all files in the package.

When the Rules-Requires-Root field has the (effective) value of binary-targets, dh_fixperms will also reset the ownership of all paths to "root:root".

Options

-Xitem, --exclude item

Exclude files that contain item anywhere in their filename from having their permissions changed. You may use this option multiple times to build up a list of things to exclude.

Releases

15 releases since Debian 2.0 (Hamm); the text changed 14 times.

  1. 2.0
  2. 2.1
  3. 2.2
  4. 3.0
  5. 3.1
  6. 4.0
  7. 5.0
  8. 6.0
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11
  14. 12
  15. 13

--exclude since Debian 2.1 (Slink); -X since Debian 3.0 (Woody).

--arch until Debian 2.0 (Hamm); --indep until Debian 2.0 (Hamm); --no-act until Debian 2.0 (Hamm); --package until Debian 2.0 (Hamm); --tmpdir until Debian 2.0 (Hamm); --verbose until Debian 2.0 (Hamm); -Ptmpdir until Debian 2.0 (Hamm); -Xitem until Debian 2.2 (Potato); -a until Debian 2.0 (Hamm); -i until Debian 2.0 (Hamm); -ppackage until Debian 2.0 (Hamm); -v until Debian 2.0 (Hamm).

Author

Joey Hess <[email protected]>

From debhelper 13.24.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.