SHA256
1
0
forked from pool/tigervnc

- added a reference to bsc#1162951 about the reasoning why adding

the vnc user to the shadow group

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/tigervnc?expand=0&rev=173
This commit is contained in:
Stefan Dirsch 2020-02-07 11:57:08 +00:00 committed by Git OBS Bridge
parent f03183cdac
commit 9f2afed209
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 7 11:55:20 UTC 2020 - Stefan Dirsch <sndirsch@suse.com>
- added a reference to bsc#1162951 about the reasoning why adding
the vnc user to the shadow group
-------------------------------------------------------------------
Wed Jan 15 11:42:20 UTC 2020 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package tigervnc
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -407,6 +407,8 @@ fi
getent group %{vncgroup} > /dev/null || groupadd -r %{vncgroup} || :
getent passwd %{vncuser} > /dev/null || useradd -r -g %{vncgroup} -d /var/lib/empty -s /sbin/nologin -c "user for VNC" %{vncuser} || :
# add vnc user to shadow group. (bsc#980326)
# more details about the reasoning in bsc#1162951
usermod -G shadow -a %{vncuser} || :
%post -n xorg-x11-Xvnc