Permalink
Browse files

sudoers has to be owned by uid 0

fcopy copies the owner of the file per default
when building from git cloned by a user, the owner is the user
fix it by chowning /etc/sudoers to 0:0

(not using fcopy's -m flag for better readability)
  • Loading branch information...
1 parent cf1e362 commit d365bf75f19e177f2defeaf944d7f8dca849224b @evgeni evgeni committed with mika Apr 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 etc/grml/fai/config/scripts/GRMLBASE/20-sudo
View
1 etc/grml/fai/config/scripts/GRMLBASE/20-sudo
@@ -13,6 +13,7 @@ set -e
fcopy -v /etc/sudoers
sed -i "s/\$USERNAME/$USERNAME/" $target/etc/sudoers
chmod 440 $target/etc/sudoers
+chown 0:0 $target/etc/sudoers
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2

0 comments on commit d365bf7

Please sign in to comment.