2010-01-16 05:43:05 +01:00
|
|
|
#
|
|
|
|
# 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
|
2010-04-22 16:51:50 +02:00
|
|
|
chmod 4111 usr/bin/sudo usr/bin/sudoedit
|
2010-10-22 21:00:07 +02:00
|
|
|
[ ! -d etc/sudoers.d ] && install -d etc/sudoers.d
|
2011-08-18 16:04:00 +02:00
|
|
|
[ ! -d var/db/sudo ] && install -dm750 var/db/sudo
|
2010-01-16 05:43:05 +01:00
|
|
|
;;
|
|
|
|
esac
|