From c66194d537560ec8f52dccb006276167716c99d60a05897d455790efebe1771d Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Mon, 21 Aug 2017 07:07:45 +0000 Subject: [PATCH] Accepting request 517841 from home:kukuk:sysusers - user nobody: move usermod to %post, else it will be executed before the user is created. OBS-URL: https://build.opensuse.org/request/show/517841 OBS-URL: https://build.opensuse.org/package/show/Base:System/system-users?expand=0&rev=25 --- system-users.changes | 6 ++++++ system-users.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/system-users.changes b/system-users.changes index e0c4cdc..f2360d8 100644 --- a/system-users.changes +++ b/system-users.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 21 08:48:31 CEST 2017 - kukuk@suse.de + +- user nobody: move usermod to %post, else it will be executed + before the user is created. + ------------------------------------------------------------------- Mon Jul 10 09:33:46 UTC 2017 - dimstar@opensuse.org diff --git a/system-users.spec b/system-users.spec index bed505f..d130362 100644 --- a/system-users.spec +++ b/system-users.spec @@ -238,6 +238,7 @@ install -m 644 %{SOURCE16} %{buildroot}%{_sysusersdir}/system-user-upsd.conf %pre -n system-user-ftp -f ftp.pre %pre -n system-user-lp -f lp.pre %pre -n system-user-nobody -f nobody.pre +%post -n system-user-nobody /usr/sbin/usermod -s /bin/bash nobody %pre -n system-user-upsd -f upsd.pre