1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00
systemd/test/test-sysusers
Nick Rosbrook 18a8f03e51 sysusers: check if requested group name matches user name in queue
When creating a user, check if the requested group name matches a user
name in the queue. If that matched user name is also going to be a group
name, then use it for the new user too. In other words, allow the
following:

 u foo -
 u bar -:foo

when both foo and bar are new users.

Fixes #33547
2024-08-06 13:02:58 +02:00
..
.gitattributes
inline.expected-group
inline.expected-passwd
test-1.expected-group
test-1.expected-passwd
test-1.input
test-2.expected-group
test-2.expected-passwd
test-2.input
test-3.expected-group
test-3.expected-passwd
test-3.input
test-4.expected-group
test-4.expected-passwd
test-4.input
test-5.expected-group
test-5.expected-passwd
test-5.input
test-6.expected-group
test-6.expected-passwd
test-6.input
test-7.expected-group
test-7.expected-passwd
test-7.input
test-8.expected-group
test-8.expected-passwd
test-8.input
test-9.expected-group
test-9.expected-passwd
test-9.input
test-00-basic.expected-group test-sysusers: add test for basic.conf 2023-02-15 10:54:25 +09:00
test-00-basic.expected-passwd test-sysusers: add test for basic.conf 2023-02-15 10:54:25 +09:00
test-00-basic.input test-sysusers: add test for basic.conf 2023-02-15 10:54:25 +09:00
test-10.expected-group
test-10.expected-passwd
test-10.input
test-11.expected-group
test-11.expected-passwd
test-11.initial-group
test-11.initial-passwd
test-11.input
test-12.expected-group
test-12.expected-passwd
test-12.initial-group
test-12.initial-passwd
test-12.input
test-13.expected-group
test-13.expected-passwd
test-13.input
test-14.expected-group
test-14.expected-passwd
test-14.initial-group
test-14.input
test-15.expected-group test-sysusers: check group creation with matching user entry 2022-11-03 15:12:15 +00:00
test-15.expected-passwd test-sysusers: check group creation with matching user entry 2022-11-03 15:12:15 +00:00
test-15.initial-passwd test-sysusers: check group creation with matching user entry 2022-11-03 15:12:15 +00:00
test-15.input test-sysusers: check group creation with matching user entry 2022-11-03 15:12:15 +00:00
test-16.expected-group sysusers: check if requested group name matches user name in queue 2024-08-06 13:02:58 +02:00
test-16.expected-passwd sysusers: check if requested group name matches user name in queue 2024-08-06 13:02:58 +02:00
test-16.input sysusers: check if requested group name matches user name in queue 2024-08-06 13:02:58 +02:00
unhappy-1.expected-err sysusers: use log_syntax (changes prefix from '[%s:%u]' to '%s:%u:') 2022-08-22 12:52:25 +02:00
unhappy-1.input
unhappy-2.expected-err
unhappy-2.input
unhappy-3.expected-err
unhappy-3.input