From d365bf75f19e177f2defeaf944d7f8dca849224b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 27 Apr 2012 15:24:49 +0200 Subject: [PATCH] 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) --- etc/grml/fai/config/scripts/GRMLBASE/20-sudo | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/20-sudo b/etc/grml/fai/config/scripts/GRMLBASE/20-sudo index 49fccff..f6934ea 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/20-sudo +++ b/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 -- 2.1.4