dh_fixperms(1) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | SEE ALSO | AUTHOR | COLOPHON

DH_FIXPERMS(1)                  Debhelper                 DH_FIXPERMS(1)

NAME         top

       dh_fixperms - fix permissions of files in package build
       directories

SYNOPSIS         top

       dh_fixperms [debhelper options] [-Xitem]

DESCRIPTION         top

       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         top

       -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.

SEE ALSO         top

       debhelper(7)

       This program is a part of debhelper.

AUTHOR         top

       Joey Hess <joeyh@debian.org>

COLOPHON         top

       This page is part of the debhelper (helper programs for
       debian/rules) project.  Information about the project can be
       found at [unknown -- if you know, please contact man-
       pages@man7.org] If you have a bug report for this manual page,
       send it to submit@bugs.debian.org.  This page was obtained from
       the project's upstream Git repository
       ⟨https://salsa.debian.org/debian/debhelper.git⟩ on 2021-04-01.
       (At that time, the date of the most recent commit that was found
       in the repository was 2021-03-06.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       man-pages@man7.org

13.0.1                         2020-05-16                 DH_FIXPERMS(1)

Pages that refer to this page: debhelper(7)