DH_TESTROOT - Online Linux Manual PageSection : 1
Updated : 2021-03-06
Source : 13.3.4
Note : Debhelper

NAMEdh_testroot − ensure that a package is built with necessary level of root permissions

SYNOPSISdh_testroot [debhelper options]

DESCRIPTIONdh_testroot is used to determine if the target is being run with suffient access to root(−like) features. The definition of sufficient access depends on whether the builder (the tool invoking the debian/rules target) supports the ​Rules-Requires-Root () field. If the builder supports R³, then it will set the environment variable DEB_RULES_REQUIRES_ROOT and ​dh_testroot will validate that the builder followed the minimum requirements for the given value of DEB_RULES_REQUIRES_ROOT. If the builder does not support Rules-Requires-Root, then it will not set the DEB_RULES_REQUIRES_ROOT environment variable. This will in turn make dh_testroot (and the rest of debhelper) fall back to assuming that (fake)root is implied. The following is a summary of how dh_testroot behaves based on the ​DEB_RULES_REQUIRES_ROOT environment variable (leading and trailing whitespace in the variable is ignored). − If unset, or set to binary−targets, then dh_testroot asserts that it is run as root or under fakeroot(1). − If set to no, then dh_testroot returns successfully (without performing any additional checks). − If set to any other value than the above, then dh_testroot asserts that it is either run as root (or under fakeroot(1)) or the builder has provided the DEB_GAIN_ROOT_CMD environment variable (e.g. via dpkg-buildpackage −r). Please note that dh_testroot does not read the ​Rules-Requires-Root field. Which implies that dh_testroot may produce incorrect result if the builder lies in ​DEB_RULES_REQUIRES_ROOT. On the flip side, it also enables things like testing for what will happen when DEB_RULES_REQUIRES_ROOT is set to a given value.

SEE ALSOdebhelper(7) This program is a part of debhelper.

AUTHORJoey Hess <joeyh@debian.org>
0
Johanes Gumabo
Data Size   :   8,105 byte
man-dh_testroot.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 198,902
Visitor ID   :     :  
Visitor IP   :   3.147.42.34   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|dh_testroot.1|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|dh_testroot.1|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|dh_testroot.1|43|br══─}─══|'br══─}─══ )         (htmlprn|149|dh_testroot.1|43|'br══─}─══ |'br══─}─══ )