DH_FIXPERMS(1)
π DH_FIXPERMS(1) β the Debhelper one β¨
okay so bestie, welcome to dh_fixperms, a page straight out of the Debhelper manual π pull up a chair, grab a boba, we're fixing file permissions today and honestly? it's giving glow-up.
πΈ NAME πΈ
dh_fixperms β fix permissions of files in package build directories π
β¨ SYNOPSIS β¨
dh_fixperms [debhelper options] [-Xitem]
π DESCRIPTION π
so like, dh_fixperms is a debhelper program and its whole job β its entire main character arc β is setting the permissions of files and directories inside package build directories to a sane state. and by sane we mean a state that complies with Debian policy. no chaos, no rogue modes, just vibes that policy will accept π«Ά
here's the full rundown, and yes every single one of these is real:
- it makes all files in
usr/share/docin the package build directory be mode644β but wait, lowkey important: files in theexamples/directory are excluded from that π - 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
binandsbindirectories,usr/games/andetc/init.dexecutable (since v4) π₯ - and finally? it removes the setuid and setgid bits from all files in the package, periodt π
and one more thing β 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". not optional, just how it is π
π OPTIONS π
-Xitem,--exclude itemβ exclude files that contain item anywhere in their filename from having their permissions changed. and yes you can use this option multiple times to build up a whole little list of things to exclude π¦
π SEE ALSO π
this program is a part of debhelper π
π AUTHOR π
Joey Hess <joeyh@debian.org> πΈ
okay bestie that's the whole page, you ate it, you understood it, slay. this was version 14.5ubuntu1, dated 2026-09-21 β go forth and fix those perms, no cap πβ¨π
π¦ where this page comes from
- ubuntu stonking: debhelper 14.5ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms