diff --git a/scripts/zpool-create.sh b/scripts/zpool-create.sh index e46b02cdda..4b8e3a8bf2 100755 --- a/scripts/zpool-create.sh +++ b/scripts/zpool-create.sh @@ -62,6 +62,10 @@ while getopts 'hvc:p:' OPTION; do esac done +if [ $(id -u) != 0 ]; then + die "Must run as root" +fi + check_config || die "${ERROR}" . ${ZPOOL_CONFIG}