summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/visudo/test9.sh
blob: 175ad6e809305a233eb4f91faf524f0d0a4b5ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Test IP and network address in host-based Defaults statements
# Bugzilla #766
#

: ${VISUDO=visudo}

$VISUDO -cf - <<-EOF
	Defaults@127.0.0.1 !authenticate
	Defaults@10.0.0.0/8 !always_set_home
	EOF

exit 0