summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/sudo/sudo.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/sudo/sudo.inc b/packages/sudo/sudo.inc
index 7251bcdb4a..92d3c47266 100644
--- a/packages/sudo/sudo.inc
+++ b/packages/sudo/sudo.inc
@@ -20,5 +20,10 @@ do_configure_prepend () {
}
pkg_postinst() {
- chmod 0440 ${sysconfdir}/sudoers
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+
+ chmod 4111 /usr/bin/sudo
+ chmod 0440 /etc/sudoers
}