question

xzv avatar image
xzv asked

root password is reset after update

I've set the access level to "Superuser" and entered my root SSH password via the menu entry "Set root password".

However, I've noticed that after each VenusOS update I cannot login as root anymore:

Permission denied, please try again.

Is the root password overwritten during the update?

Venus OSroot
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
Alex Pescaru avatar image
Alex Pescaru answered ·

Hi @XZv

Don't know if it's a bug or it's intentional, but unfortunately, yes, the password is overwritten during update...

Alex

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

xzv avatar image xzv commented ·

Is there a known backup strategy that survives the update?

0 Likes 0 ·
Alex Pescaru avatar image
Alex Pescaru answered ·

Hi @XZv

I, for one, am entering it again.

But Linux stores the password in the /etc/shadow file.

In VenusOS, the sole folder that survives the upgrade is /data folder.

Don't know if it will work, but you may copy the shadow file to /data folder and then, after upgrade, copy it back to /etc folder. Maybe make a script that will automate it.

Alex

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources

Additional resources still need to be added for this topic

Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)