Lines Matching refs:sudoers
266 sudoers=/etc/sudoers
267 if [ ! -r $sudoers ]; then
268 tst_brkm TBROK "can't read $sudoers"
271 if grep -q "^${pattern}" $sudoers; then
272 tst_resm TINFO "Comment requiretty in $sudoers for automated testing systems"
273 if ! sed -r -i.$$ -e "s/^($pattern)/#\1/" $sudoers; then
274 tst_brkm TBROK "failed to mangle $sudoers properly"
281 tst_resm TINFO "Restore requiretty in $sudoers"
282 mv /etc/sudoers.$$ /etc/sudoers
298 if test ! -f $sudoers
300 echo "root ALL=(ALL) ALL" > $sudoers || exit
301 chmod 440 $sudoers
307 sudo rm -f $sudoers