From: Inkyun Kil Date: Thu, 23 Nov 2017 02:54:04 +0000 (+0900) Subject: Change uid/gid for buxton X-Git-Tag: accepted/tizen/unified/20171124.172650~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d041a574bc95873620749264937788bfe7c92c4;p=platform%2Fcore%2Fsystem%2Fbuxton2.git Change uid/gid for buxton Change-Id: I3836b6da8ad5aea65c9e8524a6ab8821593ae864 Signed-off-by: Inkyun Kil --- diff --git a/packaging/buxton2.spec b/packaging/buxton2.spec index 1a3fd1e..b1bfa96 100755 --- a/packaging/buxton2.spec +++ b/packaging/buxton2.spec @@ -148,8 +148,9 @@ cp -f scripts/299.buxton2_upgrade.sh %{buildroot}%{upgrade_script_path} # buxtond runs as user buxton of group buxton # create it on need! -getent group buxton > /dev/null || groupadd -r buxton -getent passwd buxton > /dev/null || useradd -r -g buxton -d "%{dbdir}" buxton +getent group buxton > /dev/null || groupadd -r -g 375 buxton 2> /dev/null +getent passwd buxton > /dev/null || useradd -c "buxton" -u 375 -g 375 \ + -s /sbin/nologin -r -d /var/lib/empty buxton 2> /dev/null # The initial DBs will not have the correct labels and # permissions when created in postinstall during image