On 11/20/17 05:09, hero...@gentoo.org wrote: [...] > diff --git a/eclass/user.eclass b/eclass/user.eclass > index 86bcd282479..76a622df698 100644 > --- a/eclass/user.eclass > +++ b/eclass/user.eclass > @@ -103,6 +103,10 @@ egetent() { > # Default uid is (pass -1 for this) next available, default shell is > # /bin/false, default homedir is /dev/null, and there are no default groups. > enewuser() { > + if [[ ${EUID} != 0 ]] ; then > + einfo "Insufficient privileges to execute ${FUNCNAME[0]}" maybe ewarn() is more appropriate than einfo()? Just in case it's executed outside the scope of prefix
[...]