[arm-allstar] The forgotten root password blues

KK4MJZ Repeater Admin info at kk4mjz.com
Sun Apr 12 01:45:18 EDT 2020


Perfect!  Thanks Doug!

> On Apr 12, 2020, at 01:28, Doug Crompton via ARM-allstar <arm-allstar at hamvoip.org> wrote:
> 
> You have to remove the SD card and mount and edit it on another system.
> Putting the card in a reader and putting it into a Ubuntu or a Pi Raspbien
> system it will mount automatically and you can look at and edit files
> (carefully).
> 
> The bottom line though is that if you have not made a lot of changes on the
> system that you lost the PW on then it would be much easier to just run
> firsttime.sh and re-setup. Most of your prior answers will be presented to
> you and you can have it back up and running in minutes.
> 
> *73 Doug, WA3DSP*
> *http://wa3dsp.org <http://wa3dsp.org>*
> 
>> On Sun, Apr 12, 2020 at 1:22 AM "KK4MJZ Repeater Admin via ARM-allstar" <
>> arm-allstar at hamvoip.org> wrote:
>> 
>> One question regarding this.   How can you make a backup copy of shadow if
>> you cannot get in via root?
>> 
>>> On Apr 11, 2020, at 03:07, KK4MJZ Repeater Admin <info at kk4mjz.com>
>> wrote:
>>> 
>>> Thanks David!  I will give this a try!
>>> 
>>> 
>>> 
>>>> On Apr 11, 2020, at 02:29, Doug Crompton via ARM-allstar <
>> arm-allstar at hamvoip.org> wrote:
>>>> 
>>>> From an earlier message...  It involves a few step and in many cases it
>>>> might be easier to just re-setup the node. Your choice....
>>>> 
>>>> 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" accoun



More information about the ARM-allstar mailing list