Improving creation of user 'cynara' 89/28389/4
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 6 Oct 2014 15:31:59 +0000 (17:31 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Mon, 13 Oct 2014 18:12:09 +0000 (11:12 -0700)
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 <jose.bollo@open.eurogiciel.org>
packaging/cynara.spec

index 7508fbf..c25347f 100644 (file)
@@ -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