dépôts
/
lhc
/
ateliers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2acb028
)
Correction : vm_hosted : permissions pour une exécution non-root.
author
Julien Moutinho
<julm+burette@autogeree.net>
Tue, 26 Mar 2013 08:54:04 +0000
(09:54 +0100)
committer
Julien Moutinho
<julm+burette@autogeree.net>
Tue, 26 Mar 2013 09:00:57 +0000
(10:00 +0100)
vm_hosted
patch
|
blob
|
history
diff --git
a/vm_hosted
b/vm_hosted
index
874c3e8
..
9a0e5a4
100755
(executable)
--- a/
vm_hosted
+++ b/
vm_hosted
@@
-34,7
+34,7
@@
rule_git_configure () {
git config --replace branch.master.merge refs/remotes/master
local tool
tool=$(cd "$tool"; cd -)
git config --replace branch.master.merge refs/remotes/master
local tool
tool=$(cd "$tool"; cd -)
-
sudo
install -m 770 /dev/stdin .git/hooks/post-update <<-EOF
+ install -m 770 /dev/stdin .git/hooks/post-update <<-EOF
#!/bin/sh -efux
case \$1 in
(refs/remotes/master)
#!/bin/sh -efux
case \$1 in
(refs/remotes/master)
@@
-470,10
+470,11
@@
rule_initramfs_configure () {
$users
EOF
do eval local home\; home="~$user"
$users
EOF
do eval local home\; home="~$user"
- cat "$home"/etc/ssh/authorized_keys
+
sudo
cat "$home"/etc/ssh/authorized_keys
done
done |
done
done |
- sudo install -m 644 -o root -g root /dev/stdin /etc/initramfs-tools/root/.ssh/authorized_keys
+ sudo install -m 644 -o root -g root /dev/stdin \
+ /etc/initramfs-tools/root/.ssh/authorized_keys
sudo rm -f \
/etc/initramfs-tools/root/.ssh/id_rsa.dropbear \
/etc/initramfs-tools/root/.ssh/id_rsa.pub \
sudo rm -f \
/etc/initramfs-tools/root/.ssh/id_rsa.dropbear \
/etc/initramfs-tools/root/.ssh/id_rsa.pub \
@@
-1385,7
+1386,7
@@
rule_user_root_configure () {
$users
EOF
do eval local home\; home="~$user"
$users
EOF
do eval local home\; home="~$user"
- cat "$home"/etc/ssh/authorized_keys
+
sudo
cat "$home"/etc/ssh/authorized_keys
done
done |
sudo install -m 640 -o root -g root /dev/stdin /root/etc/ssh/authorized_keys
done
done |
sudo install -m 640 -o root -g root /dev/stdin /root/etc/ssh/authorized_keys