use $EUID instead of expensive call to external program