From b13293789e389806a41f15b74ff62a82675d902e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 6 Oct 2014 17:31:59 +0200 Subject: [PATCH] Improving creation of user 'cynara' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To improve the creation of the user cynara, the home directory is now set to /var/lib/empty, the shell is set to /sbin/nologin, the main group is set to cynara. Change-Id: I4582caa9f9a61cd8c52d0a6718f504903cdee479 Signed-off-by: José Bollo --- packaging/cynara.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/cynara.spec b/packaging/cynara.spec index 7508fbf..c25347f 100644 --- a/packaging/cynara.spec +++ b/packaging/cynara.spec @@ -273,7 +273,7 @@ fi id -u %{user_name} > /dev/null 2>&1 if [ $? -eq 1 ]; then - useradd %{user_name} -r > /dev/null 2>&1 + useradd -d /var/lib/empty -s /sbin/nologin -r -g %{group_name} %{user_name} > /dev/null 2>&1 fi %post -- 2.7.4