void-packages/srcpkgs/sudo/INSTALL

14 lines
306 B
Plaintext

#
# This script sets up correct perms for /etc/sudoers.
#
case "${ACTION}" in
post)
if [ -f etc/sudoers ]; then
echo "Setting up permissions to /etc/sudoers..."
chmod 0440 etc/sudoers
fi
[ ! -d etc/sudoers.d ] && install -d etc/sudoers.d
[ ! -d var/db/sudo ] && install -dm750 var/db/sudo
;;
esac