--- portmaster.orig 2016-02-10 16:35:04 UTC +++ portmaster @@ -7,6 +7,12 @@ trap trap_exit INT umask 022 +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi + + # Initialize crucial values for the parent, and export them for the children if [ -z "$PM_PARENT_PID" ]; then PM_PARENT_PID=$$