summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-02-15 18:03:59 +0100
committerGitHub <noreply@github.com>2023-02-15 18:03:59 +0100
commit9ecf86543358166a906050ad6cc7c644f291c2d9 (patch)
tree8be01266c891ccb06f8146204753bb4616248ab2 /test
parentMerge pull request #26424 from ldv-alt/fix-typos (diff)
parenttest-sysusers: add test for basic.conf (diff)
downloadsystemd-9ecf86543358166a906050ad6cc7c644f291c2d9.tar.xz
systemd-9ecf86543358166a906050ad6cc7c644f291c2d9.zip
Merge pull request #26417 from yuwata/sysusers-root-group
sysusers: also create root group
Diffstat (limited to 'test')
-rw-r--r--test/test-sysusers/test-00-basic.expected-group19
-rw-r--r--test/test-sysusers/test-00-basic.expected-passwd2
-rw-r--r--test/test-sysusers/test-00-basic.input41
3 files changed, 62 insertions, 0 deletions
diff --git a/test/test-sysusers/test-00-basic.expected-group b/test/test-sysusers/test-00-basic.expected-group
new file mode 100644
index 0000000000..0d08ec94b3
--- /dev/null
+++ b/test/test-sysusers/test-00-basic.expected-group
@@ -0,0 +1,19 @@
+root:x:0:
+nobody:x:65534:
+adm:x:999:
+wheel:x:998:
+utmp:x:997:
+audio:x:996:
+cdrom:x:995:
+dialout:x:994:
+disk:x:993:
+input:x:992:
+kmem:x:991:
+kvm:x:990:
+lp:x:989:
+render:x:988:
+sgx:x:987:
+tape:x:986:
+tty:x:5:
+video:x:985:
+users:x:984:
diff --git a/test/test-sysusers/test-00-basic.expected-passwd b/test/test-sysusers/test-00-basic.expected-passwd
new file mode 100644
index 0000000000..e2b2fdf66f
--- /dev/null
+++ b/test/test-sysusers/test-00-basic.expected-passwd
@@ -0,0 +1,2 @@
+root:x:0:0:Super User:/root:/bin/sh
+nobody:x:65534:65534:Kernel Overflow User:/:NOLOGIN
diff --git a/test/test-sysusers/test-00-basic.input b/test/test-sysusers/test-00-basic.input
new file mode 100644
index 0000000000..3031c6b58b
--- /dev/null
+++ b/test/test-sysusers/test-00-basic.input
@@ -0,0 +1,41 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+# The superuser
+g root 0 - -
+u root 0:0 "Super User" /root
+
+# The nobody user/group for NFS file systems
+g nobody 65534 - -
+u nobody 65534:65534 "Kernel Overflow User" -
+
+# Administrator group: can *see* more than normal users
+g adm 999 - -
+
+# Administrator group: can *do* more than normal users
+g wheel 998 - -
+
+# Access to shared database of users on the system
+g utmp 997 - -
+
+# Physical and virtual hardware access groups
+g audio 996 - -
+g cdrom 995 - -
+g dialout 994 - -
+g disk 993 - -
+g input 992 - -
+g kmem 991 - -
+g kvm 990 - -
+g lp 989 - -
+g render 988 - -
+g sgx 987 - -
+g tape 986 - -
+g tty 5 - -
+g video 985 - -
+
+# Default group for normal users
+g users 984 - -