]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service
Merge pull request #30844 from keszybz/rename-uid-alloc-range
[thirdparty/systemd.git] / test / test-execute / exec-supplementarygroups-multiple-groups-withgid.service
CommitLineData
22d3cfe5 1# SPDX-License-Identifier: LGPL-2.1-or-later
50ca7a35
DH
2[Unit]
3Description=Test for Supplementary Group with multiple groups and Group=1
4
5[Service]
63403f07
ZJS
6ExecStart=sh -x -c 'for g in $$(id -G); do test "$$g" = "1" && exit 0; done; exit 1'
7ExecStart=sh -x -c 'for g in $$(id -G); do test "$$g" = "2" && exit 0; done; exit 1'
8ExecStart=sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "%U"'
50ca7a35
DH
9Type=oneshot
10Group=1
d723b046 11SupplementaryGroups=1 2