1
0
forked from pool/sysuser-tools
Commit Graph

50 Commits

Author SHA256 Message Date
Dominique Leuenberger
42ef6462ef Accepting request 901701 from Base:System
- Bump version up to 3.1. The --replace parameter only appeared in
  systemd 238, so we need to ensure to get the update order correct
  for sysuser-generate when using the 3rd command line parameters:
  * systemd -> sysuser-tools -> system-{user|group}-FOO.
- Add dependency on systemd >=238 if systemd is installed to
  sysuser-shadow
- update sysuser_requires to request sysuser-shadow 3.1

- Support systemd-sysusers --replace=/usr/lib/sysusers.d/ option
- sysusers-generate-pre: only use first argument for grep
- sysusers2shadow.sh: use "run" prefix for systemd-sysusers call
- macros.sysusers: fix typo

OBS-URL: https://build.opensuse.org/request/show/901701
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=18
2021-07-01 05:05:26 +00:00
Dominique Leuenberger
2b923e08d1 - Add dependency on systemd >=238 if systemd is installed to
sysuser-shadow

OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=47
2021-06-24 10:24:07 +00:00
Dominique Leuenberger
20facdb138 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=46 2021-06-24 10:22:57 +00:00
Dominique Leuenberger
8545e7eac4 Accepting request 901117 from home:dimstar:Factory
- Bump version up to 3.1. The --replace parameter only appeared in
  systemd 238, so we need to ensure to get the update order correct
  for sysuser-generate when using the 3rd command line parameters:
  * systemd -> sysuser-tools -> system-{user|group}-FOO.
- Add Conflicts systemd < 238 to sysuser-shadow
- update sysuser_requires to request sysuser-shadow 3.1

OBS-URL: https://build.opensuse.org/request/show/901117
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=45
2021-06-21 10:02:40 +00:00
Thorsten Kukuk
1d4aa7fd58 Accepting request 898111 from home:kukuk:container
- Support systemd-sysusers --replace=/usr/lib/sysusers.d/ option
- sysusers-generate-pre: only use first argument for grep
- sysusers2shadow.sh: use "run" prefix for systemd-sysusers call
- macros.sysusers: fix typo

OBS-URL: https://build.opensuse.org/request/show/898111
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=44
2021-06-07 13:14:59 +00:00
Dominique Leuenberger
4ed4fcfdf8 Accepting request 892049 from Base:System
OBS-URL: https://build.opensuse.org/request/show/892049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=17
2021-05-17 16:44:49 +00:00
Thorsten Kukuk
d60e82f465 Accepting request 891513 from home:gmbr3:Active
- Use /usr/sbin/nologin instead of /sbin/nologin

OBS-URL: https://build.opensuse.org/request/show/891513
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=43
2021-05-10 13:44:26 +00:00
Dominique Leuenberger
b862de009b Accepting request 872280 from Base:System
- Don't abort on unbound first argument (forwarded request 872279 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/872280
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=16
2021-02-17 17:09:54 +00:00
Thorsten Kukuk
cf63454c7b Accepting request 872279 from home:kukuk:etc
- Don't abort on unbound first argument

OBS-URL: https://build.opensuse.org/request/show/872279
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=42
2021-02-15 07:31:11 +00:00
Thorsten Kukuk
1877b519f4 Accepting request 871218 from home:kukuk:etc
- Remove sysusers/nscd workaround

OBS-URL: https://build.opensuse.org/request/show/871218
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=41
2021-02-11 13:54:52 +00:00
Thorsten Kukuk
c81af58db0 Accepting request 871208 from home:kukuk:etc
- Use systemd-sysusers only if /proc is mounted, don't require it
- Set --replace option for systemd-sysusers

OBS-URL: https://build.opensuse.org/request/show/871208
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=40
2021-02-11 12:54:07 +00:00
Dominique Leuenberger
c35adb65ba https://bugzilla.opensuse.org/show_bug.cgi?id=1181328
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=14
2021-01-25 09:30:35 +00:00
Dominique Leuenberger
0f53e6b246 Accepting request 865022 from Base:System
- Ignore nscd return code (forwarded request 865021 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/865022
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=13
2021-01-22 20:49:01 +00:00
Thorsten Kukuk
24d67490c3 Accepting request 865021 from home:kukuk:etc
- Ignore nscd return code

OBS-URL: https://build.opensuse.org/request/show/865021
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=37
2021-01-20 15:08:26 +00:00
Thorsten Kukuk
8e3bfd4594 Accepting request 864336 from home:kukuk:etc
- If systemd-sysusers is used to create a new user/group, invalidate
  the nscd passwd and group cache to make the new user/group
  visible immediately as workaround [bsc#1181121].
  Needs to be removed after sytemd-sysusers get's fixed, since we
  invalidate the cache even if the user/group file wasn't changed.

OBS-URL: https://build.opensuse.org/request/show/864336
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=36
2021-01-19 15:20:59 +00:00
Thorsten Kukuk
45d70a85d7 Accepting request 863987 from home:kukuk:etc
- An "u" in a sysusers.d file will create an user and a group.
  Create provides for both, user and group.

OBS-URL: https://build.opensuse.org/request/show/863987
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=35
2021-01-18 07:13:39 +00:00
Thorsten Kukuk
75e8bf19d8 Accepting request 863306 from home:kukuk:etc
- Use systemd-sysusers as default to create and update the user
  account. Fixes the problem that a modified sysusers config file
  get's ignored by useradd and adduser [bsc#1180549].

OBS-URL: https://build.opensuse.org/request/show/863306
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=34
2021-01-15 10:59:15 +00:00
Dominique Leuenberger
669140103b Accepting request 853580 from Base:System
OBS-URL: https://build.opensuse.org/request/show/853580
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=12
2020-12-16 09:58:49 +00:00
Thorsten Kukuk
e839e06bcf Accepting request 853102 from home:lnussel:branches:Base:System
- useradd_or_adduser_dep must be PreReq so ordering makes sure it gets
  installed before.
- suggest shadow where useradd_or_adduser_dep is actually required

OBS-URL: https://build.opensuse.org/request/show/853102
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=32
2020-12-07 12:26:22 +00:00
Dominique Leuenberger
90d4f41ee9 Accepting request 836013 from Base:System
OBS-URL: https://build.opensuse.org/request/show/836013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=11
2020-10-08 11:05:17 +00:00
Thorsten Kukuk
73d3e7c0eb Accepting request 835782 from home:favogt:fixnobody
- Avoid useless use of cat
- Simplify %sysusers_requires
- Drop shebang, rpm passes it to /bin/sh itself

OBS-URL: https://build.opensuse.org/request/show/835782
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=30
2020-09-22 08:24:31 +00:00
Dominique Leuenberger
3a76febc55 Accepting request 828540 from Base:System
- Packages providing users need /usr/bin/cat installed to create
  them. Add that to the PreRequires. (forwarded request 828539 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/828540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=10
2020-08-28 21:44:28 +00:00
Thorsten Kukuk
1c0c62a860 Accepting request 828539 from home:kukuk:branches:Base:System
- Packages providing users need /usr/bin/cat installed to create
  them. Add that to the PreRequires.

OBS-URL: https://build.opensuse.org/request/show/828539
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=28
2020-08-21 15:11:27 +00:00
Thorsten Kukuk
2f98125200 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
2020-08-21 12:44:49 +00:00
Dominique Leuenberger
5761132af9 Accepting request 788122 from Base:System
OBS-URL: https://build.opensuse.org/request/show/788122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=9
2020-03-30 20:50:53 +00:00
Thorsten Kukuk
d7b80fccdd Accepting request 788085 from home:favogt:nobash
- Fix bug introduced by simplification of check for useradd -g
- Refactor use of sed away

OBS-URL: https://build.opensuse.org/request/show/788085
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=25
2020-03-25 10:07:14 +00:00
Thorsten Kukuk
1111c839cc Accepting request 787733 from home:favogt:nobash
- Use eval set -- $LINE instead of read for parsing

Fixes system-user-man. eval is evil though, so if there is a better idea, please tell

OBS-URL: https://build.opensuse.org/request/show/787733
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=24
2020-03-24 11:54:36 +00:00
Thorsten Kukuk
54305a4169 Accepting request 786819 from home:favogt:nobash
- Clean up sysusers2shadow and make it use only /bin/sh
- Don't let busybox adduser create the home directory, it breaks
  permissions of e.g. /sbin (home of daemon)
- Use only /bin/sh in sysusers-generate-pre and the generated code

OBS-URL: https://build.opensuse.org/request/show/786819
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=23
2020-03-20 11:31:21 +00:00
Thorsten Kukuk
81802b4712 Accepting request 785867 from home:favogt:branches:openSUSE:Factory
- Drop use of tail from the generated %pre scriptlets

I'll try dropping the bash dep next. A pure lua implementation is possible, but would require some work and is IMO not really necessary. If any of those users are needed, there's very likely also a shell available. For system-user-root it's already pure lua.

OBS-URL: https://build.opensuse.org/request/show/785867
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=22
2020-03-17 14:34:59 +00:00
Dominique Leuenberger
a427b99763 Accepting request 759949 from Base:System
OBS-URL: https://build.opensuse.org/request/show/759949
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=8
2020-01-20 21:47:13 +00:00
Thorsten Kukuk
a19c937597 Accepting request 759948 from home:kukuk:ei-demo
- Look for /bin/busybox, too
- Add special handling for busybox and groups

OBS-URL: https://build.opensuse.org/request/show/759948
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=20
2019-12-29 21:30:37 +00:00
Dominique Leuenberger
405f6921ea Accepting request 718888 from Base:System
OBS-URL: https://build.opensuse.org/request/show/718888
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=7
2019-08-05 09:18:26 +00:00
Thorsten Kukuk
68942d50f7 Accepting request 718884 from home:dimstar:Factory
Fixup macros; my bad, it should be Suggests:, not Suggest:

OBS-URL: https://build.opensuse.org/request/show/718884
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=18
2019-07-26 13:33:41 +00:00
Thorsten Kukuk
dc1a70f2b6 Accepting request 718841 from home:kukuk:container
- Use suggest shadow to prefer that over busybox in normal systems

- Add support for busybox adduser/addgroup
- Change requirements from shadow to useradd_or_adduser_dep

OBS-URL: https://build.opensuse.org/request/show/718841
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=17
2019-07-26 11:29:41 +00:00
Dominique Leuenberger
f9b70c0605 Accepting request 701809 from Base:System
OBS-URL: https://build.opensuse.org/request/show/701809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=6
2019-05-16 19:56:06 +00:00
Thorsten Kukuk
aff93c9d23 Accepting request 701787 from home:kukuk:branches:Base:System
- Fix default home directory [bsc#1105934]
- Use _rpmmacrodir for macro file

OBS-URL: https://build.opensuse.org/request/show/701787
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=15
2019-05-09 13:51:43 +00:00
Dominique Leuenberger
26d5a4d987 Accepting request 533650 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/533650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=5
2017-10-25 15:43:28 +00:00
2f5a50dce3 Accepting request 532757 from home:dimstar:Factory
I think this should finally cater to all cases, and still allow us to have proper error handling on actual systems

OBS-URL: https://build.opensuse.org/request/show/532757
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=13
2017-10-12 11:27:01 +00:00
67a4a2eee0 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=12 2017-10-07 11:55:41 +00:00
ac43675b41 Accepting request 528932 from home:dimstar:Factory
Any thoughts about this change? currently we simply hide all errors deep into zypp's log files and somehow hope the system would be working in the end

OBS-URL: https://build.opensuse.org/request/show/528932
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=11
2017-10-07 10:06:56 +00:00
Dominique Leuenberger
ccbb8631ff Accepting request 504694 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/504694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=4
2017-06-23 07:13:54 +00:00
Thorsten Kukuk
173b764048 Accepting request 504693 from home:kukuk:sysusers
- sysuser-tools needs to require sysuser-shadow

OBS-URL: https://build.opensuse.org/request/show/504693
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=9
2017-06-19 12:08:42 +00:00
Thorsten Kukuk
0b8c1d1d89 Accepting request 504648 from home:kukuk:sysusers
- Add requires for shadow to sysuser-shadow

OBS-URL: https://build.opensuse.org/request/show/504648
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=8
2017-06-19 11:49:47 +00:00
Thorsten Kukuk
c35174b874 Accepting request 504523 from home:kukuk:sysusers
- Put helper script into own subpackage
- Convert sysusers config file to shadow arguments and use
  shadow suite to create user and groups. Fixes [bsc#1041497] and
  serveral dependency loops.

OBS-URL: https://build.opensuse.org/request/show/504523
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=7
2017-06-19 06:26:55 +00:00
Dominique Leuenberger
9f94fae801 Accepting request 499622 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/499622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=3
2017-06-07 07:51:14 +00:00
Thorsten Kukuk
99f6895172 Accepting request 499621 from home:kukuk:sysusers
- Don't ignore errors of systemd-sysusers [bsc#1039708]

OBS-URL: https://build.opensuse.org/request/show/499621
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=5
2017-05-30 08:58:34 +00:00
Dominique Leuenberger
aac94ad60f Accepting request 479665 from Base:System
- Don't remove 'm' and 'r' entries from sysusers configuration

OBS-URL: https://build.opensuse.org/request/show/479665
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=2
2017-03-16 08:43:27 +00:00
Thorsten Kukuk
1a6cdb03b4 - Don't remove 'm' and 'r' entries from sysusers configuration
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=3
2017-03-15 13:47:36 +00:00
Dominique Leuenberger
fd8e521416 Accepting request 458515 from Base:System
OBS-URL: https://build.opensuse.org/request/show/458515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=1
2017-03-02 18:25:42 +00:00
Ludwig Nussel
20ab9219b9 Accepting request 457437 from home:kukuk:sysusers
Initial tool package for the new system user proposal

OBS-URL: https://build.opensuse.org/request/show/457437
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=1
2017-02-16 15:08:58 +00:00