]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-dynamicuser-fixeduser-adm.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / test-execute / exec-dynamicuser-fixeduser-adm.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test DynamicUser with static User= whose uid and gid are different
4 # On Fedora, user adm has uid==3 and gid==4.
5
6 [Service]
7 Type=oneshot
8 ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
9 # Multiple ExecStart= lines causes the issue #9702.
10 ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
11 DynamicUser=yes
12 User=adm