The --ssh-key changed behavior between hardy-updates and hardy-proposed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-vm-builder (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned | ||
Intrepid |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
Binary package hint: ubuntu-vm-builder
There is a regression in hardy-proposed compared to hardy-updates version of ubuntu-vm-builder.
From the debdiff:
--ssh-key Add the given ssh public key file (absolute path)
- to root's authorized keys and install openssh-server
+ to user's authorized keys and install openssh-server
...
fi
# we have a key, add it
chroot root apt-get install --force-yes -y openssh-server
- mkdir root/root/.ssh
- cp "$SSHKEY" root/root/
+ mkdir root/home/
+ cp "$SSHKEY" root/home/
+ chroot root chown -R $VMUSER:$VMUSER /home/$VMUSER/.ssh
+}
+
Related branches
Changed in ubuntu-vm-builder: | |
assignee: | nobody → mvo |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in vmbuilder: | |
status: | New → Fix Released |
Here is the debdiff:
diff -Nru ubuntu- vm-builder- 0.4/debian/ changelog ubuntu- vm-builder- 0.4/debian/ changelog vm-builder- 0.4/debian/ changelog 2008-06-04 16:33:48.000000000 +0200 vm-builder- 0.4/debian/ changelog 2008-08-05 14:59:58.000000000 +0200
--- ubuntu-
+++ ubuntu-
@@ -1,3 +1,12 @@
+ubuntu-vm-builder (0.4-0ubuntu0.4) hardy-proposed; urgency=low
+
+ * revert change in behavior from 0.4-0ubuntu0.1 and 0.4-0ubuntu0.2
+ for the --ssh-key option. It used to add a ssh key for root logins,
+ but with that version it changes that to a $VMUSER login.
+ This change restores the old (hardy-final) behavior (LP: #254966)
+
+ -- Michael Vogt <email address hidden> Tue, 05 Aug 2008 14:50:33 +0200
+
ubuntu-vm-builder (0.4-0ubuntu0.3) hardy-proposed; urgency=low
* Add --in-place option that will allow ubuntu-vm-builder to function when vm-builder- 0.4/ubuntu- vm-builder ubuntu- vm-builder- 0.4/ubuntu- vm-builder vm-builder- 0.4/ubuntu- vm-builder 2008-06-03 14:09:49.000000000 +0200 vm-builder- 0.4/ubuntu- vm-builder 2008-08-05 15:00:59.000000000 +0200
if your \$TMPDIR is nodev and/or nosuid, but will result in
slightly larger file system images.
( WARNING: this has strong security implications)
' chroot root <cmd>' to execute code in the guest. $VMUSER/ .ssh $VMUSER/ .ssh/authorized _keys .ssh/authorized _keys
diff -Nru ubuntu-
--- ubuntu-
+++ ubuntu-
@@ -114,7 +114,7 @@
--ssh-key Add the given ssh public key file (absolute path)
- to user's authorized keys and install openssh-server
+ to root's authorized keys and install openssh-server
--exec Run the given script file. You can use
@@ -794,9 +794,8 @@
fi
# we have a key, add it
chroot root apt-get install --force-yes -y openssh-server
- mkdir root/home/
- cp "$SSHKEY" root/home/
- chroot root chown -R $VMUSER:$VMUSER /home/$VMUSER/.ssh
+ mkdir root/root/.ssh
+ cp "$SSHKEY" root/root/
}
do_sourceslist () {