[Freedombox-discuss] password reset

Sunil Mohan Adapa sunil at medhas.org
Wed Nov 13 22:45:44 GMT 2019


On 13/11/19 2:09 pm, Johannes Keyser wrote:
> Hello Geert,
> 
> I'm not sure whether this is still up to date, but look at Sunil's
> answer at https://salsa.debian.org/freedombox-team/plinth/issues/1242.
> My guess would be that you have to chroot into the SD card to do this.

Using this command will work for LDAP user accounts (all users created
using FreedomBox web interface) but not for 'fbx' user account which a
regular account. So, this command can used change the password for the
user one has created during first setup wizard (SSH will work but
perhaps not web login because that password is different).

> 
> Another idea to gain SSH-login might be to add an SSH-pubkey into fbx's
> .ssh/authorized_keys, but I haven't tried that.
> 

This should work any admin user or 'fbx' user.

[...]
On 13.11.19 20:07, Geert Stappers wrote:
>>
>> Hello,
>>
>> How to do a password reset for a freedombox?
>>
>> Yes, I forgot the password from my freedombox.
>> ( Hardware is Olimex A20 "Pioneer" kit )
>>
>>
>> At https://wiki.debian.org/FreedomBox/Manual/SecureShell
>> is only  "change password" documented.
>>
>> What I tried
>>
>> * removed SD card from fdbx
>> * SD card into another Linux box
>> * mounted the SD card under /mnt
>> *  sudo vi /mnt/etc/passwd  # changed "fbx:*:" into "fbx::"
>> * SD card back in fdbx
>> *  ssh fbx at myfdbx    # but still a password prompt

This did not work because the default SSH configuration is disallow
empty passwords (for security reasons).

Simple passwd command on the fbx user should work. Try this:

passwd --root /mnt fbx

-- 
Sunil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/freedombox-discuss/attachments/20191113/f49b1014/attachment.sig>


More information about the Freedombox-discuss mailing list