dh_testroot man page
dh_testroot — ensure that a package is built as root
dh_testroot [debhelper options]
dh_testroot simply checks to see if you are root. If not, it exits with an error. Debian packages must be built as root, though you can use fakeroot(1)
This program is a part of debhelper.
Joey Hess <email@example.com>