]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-runtimedirectory-owner-nobody.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / test-execute / exec-runtimedirectory-owner-nobody.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set)
4
5 [Service]
6 ExecStart=/bin/sh -x -c 'group=$$(stat -c %%G %t/test-exec_runtimedirectory-owner); test "$$group" = "nobody"'
7 Type=oneshot
8 Group=nobody
9 User=root
10 RuntimeDirectory=test-exec_runtimedirectory-owner