Lines Matching +full:- +full:- +full:root
3 [ -f testing.sh ] && . testing.sh
8 # BSDs call the root group "wheel" instead,
9 # and Raspberry Pi OS has root also in the 117(lpadmin) group.
10 CLEAN="sed 's/ context=.*//g' | sed 's/wheel/root/g' | \
11 sed 's/117//g' | sed -E 's/\(?lpadmin\)?//g' | sed 's/[ ,]$//'"
13 testing "0" "id 0 | $CLEAN" "uid=0(root) gid=0(root) groups=0(root)\n" "" ""
14 testing "root" "id root | $CLEAN" \
15 "uid=0(root) gid=0(root) groups=0(root)\n" "" ""
16 testing "-G root" "id -G root | $CLEAN" "0\n" "" ""
17 testing "-nG root" "id -nG root | $CLEAN" "root\n" "" ""
18 testing "-g root" "id -g root" "0\n" "" ""
19 testing "-ng root" "id -ng root | $CLEAN" "root\n" "" ""
20 testing "-u root" "id -u root" "0\n" "" ""
21 testing "-nu root" "id -nu root" "root\n" "" ""
22 testing "no-such-user" "id no-such-user 2>/dev/null ; echo \$?" "1\n" "" ""