HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-runtimedirectory-owner-nobody.service

Git blob: 11afe7f57e3a79d638f6af9d2ee7646134ebb4b2

Lines 1–11 of 11

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set)
 
[Service]
ExecStart=bash -x -c 'group=$$(stat -c %%G %t/test-exec_runtimedirectory-owner); test "$$group" = "nobody"'
Type=oneshot
Group=nobody
User=root
RuntimeDirectory=test-exec_runtimedirectory-owner