Dear All,

We have recently upgraded to sudo-1.7.2p1-14.el5_8.2.  This upgrade breaks our 
nis setup as it alters nsswitch.conf, but does not reset the permissions to 
world readable:

# Remove the "sudoers:" line from nsswitch.conf if it's not modified
# and only when we are erasing (not upgrading) the package!
if [ $1 = 0 ] && grep -q "^sudoers:  files ldap$" "/etc/nsswitch.conf"; then
   NSSWITCH_TMPFILE=$(mktemp)
   grep -v "^sudoers:  files ldap$" "/etc/nsswitch.conf" > "$NSSWITCH_TMPFILE" 
&& \
   mv -f "$NSSWITCH_TMPFILE" "/etc/nsswitch.conf"
   restorecon "/etc/nsswitch.conf"
fi

Thanks,
Sean

Reply via email to