summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/visudo/test1.sh
blob: 5676eea5d2436cc0028e07b82800f8134c1d4744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Sudo Bug 519:
# Visudo in strict mode reports "parse error" even if there is no error
#

: ${VISUDO=visudo}

$VISUDO -csf - <<EOF
User_Alias FOO = nobody
FOO ALL=(ALL) NOPASSWD: ALL
EOF

exit 0