diff --git a/config/options b/config/options index 99bc5c01da..e6676071bd 100644 --- a/config/options +++ b/config/options @@ -1,3 +1,9 @@ +# Do not build as root. Ever. +if [[ $EUID -eq 0 ]]; then + echo "Building as the root user is NOT supported. Use a regular user account for the build." 1>&2 + exit 1 +fi + # set default language for buildsystem export LC_ALL=C