diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2016-11-02 22:59:41 +0100 |
---|---|---|
committer | Djalal Harouni <tixxdz@opendz.org> | 2016-11-03 08:37:15 +0100 |
commit | 2b9ac11ed96f2823972a77fc7cb0c32981218429 (patch) | |
tree | dd6924bcb4d86f3cd3035d2ceeaf4c75197658e3 /test/test-execute/exec-dynamicuser-fixeduser.service | |
parent | cdc5d5c55e58ff9eeb6b2258c9fc3a416ee8b53f (diff) |
test: test DynamicUser= with a fixed user
Diffstat (limited to 'test/test-execute/exec-dynamicuser-fixeduser.service')
-rw-r--r-- | test/test-execute/exec-dynamicuser-fixeduser.service | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-execute/exec-dynamicuser-fixeduser.service b/test/test-execute/exec-dynamicuser-fixeduser.service new file mode 100644 index 0000000000..1d84af02ed --- /dev/null +++ b/test/test-execute/exec-dynamicuser-fixeduser.service @@ -0,0 +1,8 @@ +[Unit] +Description=Test DynamicUser with User= + +[Service] +ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "1" && test "$$(id -g)" = "1" && test "$$(id -u)" = "1"' +Type=oneshot +User=1 +DynamicUser=yes |