From: Julien Moutinho Date: Mon, 18 Mar 2013 20:05:10 +0000 (+0100) Subject: Correction : vm_hosted : rule_time_configure : id -> getent passwd . X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=21279abd741e6f8b8a3697c0f4ff49e78e324321 Correction : vm_hosted : rule_time_configure : id -> getent passwd . --- diff --git a/vm_hosted b/vm_hosted index 533ef85..0e3a53b 100755 --- a/vm_hosted +++ b/vm_hosted @@ -1222,7 +1222,7 @@ rule_time_configure () { rule_user_add () { # SYNTAX: $user rule user_configure local user=$1 - id "$user" >/dev/null || + getent passwd "$user" >/dev/null || sudo adduser --disabled-password "$user" # NOTE: le mot-de-passe doit être initialisé par l'utilisateur à l'aide de passwd-init . eval local home\; home="~$user"