]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-dynamicuser-fixeduser-adm.service
Merge pull request #10811 from keszybz/define-main-through-macro
[thirdparty/systemd.git] / test / test-execute / exec-dynamicuser-fixeduser-adm.service
1 [Unit]
2 Description=Test DynamicUser with static User= whose uid and gid are different
3 # On Fedora, user adm has uid==3 and gid==4.
4
5 [Service]
6 Type=oneshot
7 ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
8 # Multiple ExecStart= lines causes the issue #9702.
9 ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
10 DynamicUser=yes
11 User=adm