File: exec-dynamicuser-fixeduser-adm.service

package info (click to toggle)
systemd 241-7~deb10u8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 59,140 kB
  • sloc: ansic: 355,293; xml: 59,096; python: 21,623; sh: 6,686; perl: 1,649; makefile: 265; awk: 90; lisp: 13; sed: 1
file content (11 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
[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
ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
# Multiple ExecStart= lines causes the issue #9702.
ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
DynamicUser=yes
User=adm