[arm-allstar] Lost Hamvoip password

Doug Crompton wa3dsp at gmail.com
Thu Feb 20 18:18:04 EST 2020


Steve,

 Here is a resend of a message Dave sent about recovering a password. You
have to decide which is more complicated - starting over with a new image
or recovery. Setting up a new image as long as you have your info - node#
and node password is not all that hard. Here is the method to recover a
password -



*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

I've gotten a few e-mail messages requesting more info about editing the
/etc/shadow file.  So, here it is.....


First, make a backup copy of this file, something like:

cd /etc
cp shadow shadow.backup

Then, here is what the contents looks like. Your file will probably be
slightly different. That's fine. Notice that I'm just including the 9
lines of the file. The remainder was below the <snip>. Don't truncate this
file when editing!

[root at Allstar-inttek etc]# cat shadow
root:$6$l7HzU5Ge$i.yO6XqGhbFnQQxLUI/NZoD2k23vbEhASTlV.cP40cFrsWpmfo3i5BEKyD0ZKFeE4guXsgsmgX0270cSBW3ir/:17684::::::
bin:x:14871::::::
daemon:x:14871::::::
mail:x:14871::::::
ftp:x:14871::::::
http:x:14871::::::
uuidd:x:14871::::::
dbus:x:14871::::::
nobody:x:14871::::::
<snip>


Note that only the "root" entry contains a password hash---this is the
second field. The fields are delimited by colons (":"). The first field is
the account name.

Rename the "root" account line to something else, like "root_old"...You
can also remove the old line entirely, if preferred:

root_old:$6$l7HzU5Ge$i.yO6XqGhbFnQQxLUI/NZoD2k23vbEhASTlV.cP40cFrsWpmfo3i5BEKyD0ZKFeE4guXsgsmgX0270cSBW3ir/:17684::::::


Now, paste in THIS  new line for the "root" account and save the file. It
has a hashed password of: HAMfun1901

root:$6$lOf4wZcQ$J6X9iCrOG9powS9hglu/4ozgEwf.b7wjh3Fq7Tx7p5JXr4EfuQpmgCIjV2Lsxq.lOLnosW9ld6iakF2Fz5F7H1:18235::::::


So, the /etc/shadow file will now look like:


[root at Allstar-inttek etc]# cat shadow
root:$6$l7HzU5Ge$i.yO6XqGhbFnQQxLUI/NZoD2k23vbEhASTlV.cP40cFrsWpmfo3i5BEKyD0ZKFeE4guXsgsmgX0270cSBW3ir/:17684::::::
root_old:$6$l7HzU5Ge$i.yO6XqGhbFnQQxLUI/NZoD2k23vbEhASTlV.cP40cFrsWpmfo3i5BEKyD0ZKFeE4guXsgsmgX0270cSBW3ir/:17684::::::
bin:x:14871::::::
daemon:x:14871::::::
mail:x:14871::::::
ftp:x:14871::::::
http:x:14871::::::
uuidd:x:14871::::::
dbus:x:14871::::::
nobody:x:14871::::::
<snip>


You can now place the SD card back in the original RPi and boot.  You
should be able to login as root with the password: HAMfun1901   ....Then,
go and change the root password to something else!

73, David KB4FXC




On Thu, Feb 20, 2020 at 4:05 PM "Steve Rogers via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> Is there a way to recover or reset the password for a node? My brother has
> updated his password and has apparently wrote it down incorrectly.
>
> Steve
> W4YI
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>


More information about the ARM-allstar mailing list