]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-dynamicuser-fixeduser-games.service
tmpfiles: make truncate_file() safe
[thirdparty/systemd.git] / test / test-execute / exec-dynamicuser-fixeduser-games.service
1 [Unit]
2 Description=Test DynamicUser with static User= whose uid and gid are different
3 # On Ubuntu or Debian, user games has uid==5 and gid==60.
4
5 [Service]
6 Type=oneshot
7 ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "games" && test "$$(id -ng)" = "games" && test "$$(id -nu)" = "games"'
8 # Multiple ExecStart= lines causes the issue #9702.
9 ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "games" && test "$$(id -ng)" = "games" && test "$$(id -nu)" = "games"'
10 DynamicUser=yes
11 User=games