Files
sudo/plugins/sudoers/regress/visudo/test10.sh
Todd C. Miller e5dee1557e Add NOTBEFORE and NOTAFTER command options similar to what is
already available in LDAP.
2017-02-18 15:35:48 -07:00

12 lines
302 B
Bash
Executable File

#!/bin/sh
#
# Test parsing of NOTBEFORE/NOTAFTER using local time zone
#
./visudo -cf - <<-EOF
user1 ALL = NOTBEFORE=20151201235900 /usr/bin/id
user2 ALL = NOTBEFORE=20151201235900.2 /usr/bin/id
user3 ALL = NOTBEFORE=20151201235900\,2 /usr/bin/id
user4 ALL = NOTBEFORE=2015120123 /usr/bin/id
EOF