sudo/plugins/sudoers/regress/visudo/test1.sh

15 lines
208 B
Bash
Executable File

#!/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