0

Yesterday I did one stupid thing. Removed encoded root password from /etc/shadow on my router.

root::17459:0:99999:7:::

Router firmware is a openwrt like embeded linux with ssh access. Now I can't login with neither empty password nor old password. Is any way to restore password or is updating firmware will reset password ?

migrated from stackoverflow.com May 25 '18 at 23:50

This question came from our site for professional and enthusiast programmers.

  • Is there another user on the system? Can you ssh in to that user and do sudo su to get to a root prompt and change the password from there? – etnguyen03 May 26 '18 at 1:24
  • No. Root is the only available user – vidima May 27 '18 at 20:28
  • Do you have access to modify the kernel command line arguments? (e.g: U-Boot) – Attie Aug 6 '18 at 12:19
  • No. I don't have. – vidima Aug 7 '18 at 17:49
-1

If there is a restore factory or reset available, it should take you back to default configuration (in most routers admin:admin)

  • 1
    This answer is a stab in the dark and does not address the issue. – Attie Aug 6 '18 at 12:20

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.