]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/exec-runtimedirectory-owner.service
core: fix group ownership when Group is set
[thirdparty/systemd.git] / test / exec-runtimedirectory-owner.service
1 [Unit]
2 Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set)
3
4 [Service]
5 ExecStart=/bin/sh -c 'f=/tmp/test-exec_runtimedirectory-owner;g=$(stat -c %G $f); echo "$g"; exit $(test $g = "nobody")'
6 Type=oneshot
7 Group=nobody
8 User=root
9 RuntimeDirectory=test-exec_runtimedirectory-owner