From: José Bollo Date: Mon, 6 Oct 2014 15:31:59 +0000 (+0200) Subject: Improving creation of user 'cynara' X-Git-Tag: submit/R4/20141115.054144~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b13293789e389806a41f15b74ff62a82675d902e;p=platform%2Fcore%2Fsecurity%2Fcynara.git Improving creation of user 'cynara' 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 --- 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