Still exists on 24.04
lsinitramfs /boot/initrd.img | grep dropbear
etc/dropbear
etc/dropbear/dropbear.conf
etc/dropbear/dropbear_ecdsa_host_key
etc/dropbear/dropbear_ed25519_host_key
etc/dropbear/dropbear_rsa_host_key
lsinitramfs /boot/initrd.img | grep authorized
root-DZvbGZGYW1/.ssh/authorized_k
Everything looks OK in /boot/initrd.img-4.15.0-*
etc/group
etc/passwd
root-xx
root-xx/.ssh
root-xx/.ssh/authorized_keys
NB: root-xx/.ssh/autorized_keys comes from /etc/dropbear-
initramfs/authorized_keys must be in 'dropbear' format, not 'openssh'
format, then use dropbearkey or d
Still exists on Ubuntu 18.04:
$ sudo lsinitramfs /boot/initrd.img-4.15.0-29-generic | grep root
root-Fc4un7
root-Fc4un7/.ssh
root-Fc4un7/.ssh/authorized_keys
The temp folder created with "$DESTDIR/root-XX" scheme is garbage.
It's never renamed to /root folder, thus Dropbear fails to find the
not so fine to me because it changes ~root directory in a way you can
not predict/reuse in any other hook
for instance :
*
/ # cat /etc/passwd
root:*:0:0::/root-nlmn09:/bin/sh
/ # cd
~# pwd
/root-nlmn09
*
how can we guess the name in other hooks, let's say to put some files in
~root ?
th
The temp directory is fine, because the script also generates
/etc/passwd setting root's home directory to be the temp directory.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/164
Title:
Dropbea
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: dropbear (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/164
Title:
D