#!/bin/sh set -e case "$1" in remove|upgrade|remove-in-favour|deconfigure-in-favour) # /sbin/unix_chkpwd is installed setgid shadow by default; for # NIS we need setuid root, so the postinst installed a # statoverride. Remove that override again here. if OVR=$(dpkg-statoverride --list /sbin/unix_chkpwd) && \ [ "$OVR" = "root root 4755 /sbin/unix_chkpwd" ]; then dpkg-statoverride --remove /sbin/unix_chkpwd chown root:shadow /sbin/unix_chkpwd chmod 2755 /sbin/unix_chkpwd fi ;; failed-upgrade) ;; *) ;; esac