Accepting request 828489 from home:kukuk:branches:Base:System

- Create system groups for system users

OBS-URL: https://build.opensuse.org/request/show/828489
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=27
This commit is contained in:
Thorsten Kukuk 2020-08-21 12:44:49 +00:00 committed by Git OBS Bridge
parent d7b80fccdd
commit 2f98125200
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 21 12:43:43 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Create system groups for system users
-------------------------------------------------------------------
Wed Mar 25 07:53:55 UTC 2020 - Fabian Vogt <fvogt@suse.com>

View File

@ -58,7 +58,7 @@ do
run /usr/sbin/useradd -r -s /sbin/nologin -c "$3" -d "${homedir}" $ARGUMENTS
fi
elif [ -x "$busybox" ]; then
/usr/bin/getent group "$1" >> /dev/null || $busybox addgroup "$1"
/usr/bin/getent group "$1" >> /dev/null || $busybox addgroup -S "$1"
if ! /usr/bin/getent passwd "$1" >> /dev/null; then
run $busybox adduser -S -H -s /sbin/nologin -g "$3" -G "$1" -h "${homedir}" $ARGUMENTS