HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-supplementarygroups-single-group.service

Git blob: 99c821bf59cec38c910e75ee45f679e502d516b2

Lines 1–11 of 11

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Supplementary Group with only one group
 
[Service]
ExecStart=bash -x -c 'for g in $$(id -G); do test "$$g" = "1" && exit 0; done; exit 1'
ExecStart=bash -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "0"'
Type=oneshot
Group=1
SupplementaryGroups=1