1
0
forked from pool/sysuser-tools
Commit Graph

76 Commits

Author SHA256 Message Date
Dominique Leuenberger
814d06b564 Accepting request 1192187 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1192187
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=30
2024-08-08 08:55:32 +00:00
Thorsten Kukuk
cb0a699183 - usermod: revert renamed arguments
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=60
2024-08-07 10:10:18 +00:00
Dominique Leuenberger
198f4630fa Accepting request 1192184 from openSUSE:Factory
https://bugzilla.opensuse.org/show_bug.cgi?id=1228944

OBS-URL: https://build.opensuse.org/request/show/1192184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=29
2024-08-07 10:02:57 +00:00
Dominique Leuenberger
55864fc88f Accepting request 1192184 from openSUSE:Factory
https://bugzilla.opensuse.org/show_bug.cgi?id=1228944

OBS-URL: https://build.opensuse.org/request/show/1192184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=29
2024-08-07 10:02:57 +00:00
Dominique Leuenberger
270031f7fd Accepting request 1191725 from Base:System
- Implement UID:GID support for busybox
- Reenable UID:GID support (forwarded request 1191724 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/1191725
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=28
2024-08-07 04:09:24 +00:00
Thorsten Kukuk
02b62a69dd Accepting request 1191724 from home:kukuk:cleanup
- Implement UID:GID support for busybox
- Reenable UID:GID support

OBS-URL: https://build.opensuse.org/request/show/1191724
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=59
2024-08-05 14:38:15 +00:00
Dominique Leuenberger
ebcfccaf54 Accepting request 1191331 from Base:System
- Disable UID:GID support for now 

- UID:GID: don't create group with GID if it does not exist (forwarded request 1191330 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/1191331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=27
2024-08-03 18:04:31 +00:00
Thorsten Kukuk
008c2cc775 Accepting request 1191330 from home:kukuk:cleanup
- Disable UID:GID support for now 

- UID:GID: don't create group with GID if it does not exist

OBS-URL: https://build.opensuse.org/request/show/1191330
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=58
2024-08-03 06:40:00 +00:00
Thorsten Kukuk
6b5a150fa9 Accepting request 1191152 from home:kukuk:cleanup
- Rewrite UID:GID support to work with busybox and fix it for useradd

OBS-URL: https://build.opensuse.org/request/show/1191152
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=57
2024-08-02 10:05:05 +00:00
Dominique Leuenberger
26683fb2a0 Accepting request 1190493 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1190493
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=26
2024-07-31 11:27:57 +00:00
Thorsten Kukuk
970c7769d8 - Allow setting of UID:GID for as defined in sysusers.d
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=56
2024-07-30 14:00:07 +00:00
Ana Guerrero
f56afb81dc Accepting request 1123887 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1123887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=25
2023-11-08 21:16:30 +00:00
8f4df4f4aa Accepting request 1123844 from home:dimstar:Factory
Fix build with RPM 4.19: unnumbered patches are no longer supported.

OBS-URL: https://build.opensuse.org/request/show/1123844
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=55
2023-11-07 10:26:07 +00:00
Ana Guerrero
fdfe70f3e4 Accepting request 1100548 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1100548
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=24
2023-07-27 14:50:33 +00:00
Thorsten Kukuk
a509a811ad Accepting request 1099442 from home:olh:branches:Base:System
- Version 3.2
- update sysusers_requires to request sysuser-shadow 3.2
- Use TAB consistently for indention in sysusers2shadow.sh
- This pkg needs to follow behavior which is described in sysusers.d(5).
  Always create a system group of the same name as the system user,
  even if the user already exists. (bsc#1205161, bsc#1207778, bsc#1213240)

- Disable systemd-sysuser on SLE15 to stay compatible
  (disable-systemd-sysusers.patch)

OBS-URL: https://build.opensuse.org/request/show/1099442
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=54
2023-07-25 07:05:14 +00:00
Ana Guerrero
27cfef69e3 Accepting request 1099266 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1099266
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=23
2023-07-24 16:11:34 +00:00
59868ddda3 Accepting request 1099233 from home:olh:branches:Base:System
- Add "quilt setup" friendly hint to %sysusers_requires usage
  It is not required to have sysuser-tools installed when working
  with a pkg source which uses sysuser-tools at build time.

OBS-URL: https://build.opensuse.org/request/show/1099233
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=53
2023-07-18 12:22:19 +00:00
Dominique Leuenberger
b7c166a5bf Accepting request 1004571 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1004571
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=22
2022-09-21 12:38:52 +00:00
1aff59c0c9 Accepting request 1001491 from home:gmbr3:Active
- Use append so if a pre file already exists it isn't overridden

OBS-URL: https://build.opensuse.org/request/show/1001491
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=52
2022-09-19 06:55:41 +00:00
Dominique Leuenberger
897dbdf000 Accepting request 950900 from Base:System
OBS-URL: https://build.opensuse.org/request/show/950900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=21
2022-02-12 23:15:18 +00:00
Thorsten Kukuk
bfc20235ec Accepting request 950427 from home:dirkmueller:Factory
- invoke bash for bash scripts (bsc#1195391)

OBS-URL: https://build.opensuse.org/request/show/950427
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=51
2022-02-03 09:12:53 +00:00
Dominique Leuenberger
e2411d8fe6 Accepting request 917596 from Base:System
- Add support for new shell field [bsc#1189518] (forwarded request 917595 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/917596
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=20
2021-09-10 21:40:35 +00:00
Thorsten Kukuk
e9a36c690b Accepting request 917595 from home:kukuk:tiu
- Add support for new shell field [bsc#1189518]

OBS-URL: https://build.opensuse.org/request/show/917595
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=50
2021-09-08 14:31:16 +00:00
Dominique Leuenberger
db98027dbb Accepting request 906399 from Base:System
- Use /bin/bash for sysusers-generate-pre

- Remove usage of grep from sysusers-generate-pre
- Add a simple test of sysusers-generate-pre to %check

OBS-URL: https://build.opensuse.org/request/show/906399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=19
2021-07-17 21:36:21 +00:00
Thorsten Kukuk
7672d970fc - Use /bin/bash for sysusers-generate-pre
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=49
2021-07-15 06:47:00 +00:00
Thorsten Kukuk
e4b4911129 Accepting request 903094 from home:dancermak:branches:Base:System
Remove usage of grep from sysusers-generate-pre

OBS-URL: https://build.opensuse.org/request/show/903094
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=48
2021-07-09 12:08:33 +00:00
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