Change root default password QuecOpen

Hi,

I’m using EC25-E along with the QuecOpen SDK (EC25EFAR06A01M4G_OCPU_01.001V06.01.001V06).
And I’d like to change the default password linked to the root user when updating the software on a EC25 chip. The default password for the root user when using QuecOpen being know worldwide to anyone using the chips. Not very secure.

Can anyone tell me how to modify the root password when creating the update package for the EC25 or point me in the right direction please ? I imagine the information is stored in the rootfs somewhere, but I haven’t been able to figure out how to do it.

I’d like to avoid having to connect to the EC25 in order to change the root password, for obvious security reasons, especially when we get to the production phase of our EC25 based products.

Best regards

Hi hnott,

Here I offer you a solution.

Step1:
Login to the EC25 module with the orignal password

Step2:
Run command “passwd root” and follow up the tips to type the new password.
image

Step3:
After those changes, copy file “/etc/shadow” in module to replace the same file in SDK path “ql-ol-rootfs/etc/”
image

Step4:
Run comand “make rootfs” and then you’ll get a file called “mdm9607-perf-sysfs.ubi”, replace the older one in firmware with this one, and then flash the new firmware to module

After those steps, you could login with new password, and I hope this could help you.

Thanks & Best Regars!
Zach

1 Like

Perfect. Thanks!

Best regards

You’re welcome. I’m glad to hear that this problem has been solved :smiley:
Wish you all the best!
Zach