diff --git a/hdd/adduser.sh b/hdd/adduser.sh index b5abdbd44d2d404ad310be2578e05273e734de6d..825dc6a6c5af22ddd4c38745a1250e66d7fb1c11 100755 --- a/hdd/adduser.sh +++ b/hdd/adduser.sh @@ -13,7 +13,6 @@ # 12 Não consegui criar o diretorio home # 13 Cant create mail spool # 14 Cant update SELinux user mapping - # ? sem permissao(non-root user) # 21 Tentar adicionar usuario no range do servidor sem flag @@ -44,9 +43,9 @@ add (){ #This script can only be executed by a root/sudoer user -if [ ("$(usr/bin/id -r -u 0)" != "0") ]; then +if [ "$(/usr/bin/id -r -u)" != "0" ]; then echo $0": Você não possue as permissoes necessárias para realizar essa operação" - exit ? + exit 1 fi passwd=$1