summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRaymond Danks <raymond@edanks.com>2006-05-31 22:45:45 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-31 22:45:45 +0000
commit9f66fc95aac0f3f15cc0b5bcb846ae53c0e91d5f (patch)
tree2253732d1b3dd8556aea902722c3f5049b4cda71 /packages
parent993421b8c41e7024861f478db34d20277172ec7a (diff)
sudo - Fix permissions on /etc/sudoers
Diffstat (limited to 'packages')
-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
}