2021-10-17 16:07:22 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2018-07-26 02:59:53 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Test DynamicUser with static User= whose uid and gid are different
|
|
|
|
# On Ubuntu or Debian, user games has uid==5 and gid==60.
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2024-01-04 14:24:52 +00:00
|
|
|
ExecStart=sh -x -c 'test "$$(id -nG)" = "games" && test "$$(id -ng)" = "games" && test "$$(id -nu)" = "games"'
|
2018-07-26 02:59:53 +00:00
|
|
|
# Multiple ExecStart= lines causes the issue #9702.
|
2024-01-04 14:24:52 +00:00
|
|
|
ExecStart=sh -x -c 'test "$$(id -nG)" = "games" && test "$$(id -ng)" = "games" && test "$$(id -nu)" = "games"'
|
2018-07-26 02:59:53 +00:00
|
|
|
DynamicUser=yes
|
|
|
|
User=games
|