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 Fedora, user adm has uid==3 and gid==4.
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2024-01-04 14:24:52 +00:00
|
|
|
ExecStart=sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
|
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)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
|
2018-07-26 02:59:53 +00:00
|
|
|
DynamicUser=yes
|
|
|
|
User=adm
|