projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cf1e362
)
sudoers has to be owned by uid 0
author
Evgeni Golov
<sargentd@die-welt.net>
Fri, 27 Apr 2012 13:24:49 +0000
(15:24 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 2 May 2012 13:52:05 +0000
(15:52 +0200)
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
patch
|
blob
|
history
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/20-sudo
b/etc/grml/fai/config/scripts/GRMLBASE/20-sudo
index
49fccff
..
f6934ea
100755
(executable)
--- 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