From: Evgeni Golov Date: Fri, 27 Apr 2012 13:24:49 +0000 (+0200) Subject: sudoers has to be owned by uid 0 X-Git-Tag: v0.19.0~3 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=d365bf75f19e177f2defeaf944d7f8dca849224b 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) --- 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