Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root Login requires password #5

Open
Aragur opened this issue Aug 1, 2020 · 12 comments
Open

Root Login requires password #5

Aragur opened this issue Aug 1, 2020 · 12 comments

Comments

@Aragur
Copy link

Aragur commented Aug 1, 2020

Hey I followed all the steps on the Step by Step guide.
However after setting the debug flag a root password is still required.
What can I do? (All commands ran without an error)

@MatteoGheza
Copy link

Can you update your camera FS? Can you boot your camera in dev mode?

@Aragur
Copy link
Author

Aragur commented Aug 1, 2020

Yes I can.

How can I verify that I'm in Dev mode?

@MatteoGheza
Copy link

In wiki:
Be aware, that it will prevent the CAM from fully starting up - but you'll be able to access the CAM via the UART adapter without password. just enter root as username at the login prompt.

@MatteoGheza
Copy link

MatteoGheza commented Aug 1, 2020

@Aragur
Copy link
Author

Aragur commented Aug 1, 2020

Yes I did this.
Cam is not booting,I see a login shell via UART.
When I enter root I need a password.

@MatteoGheza
Copy link

Can you try empty password?

@Aragur
Copy link
Author

Aragur commented Aug 2, 2020

I tried pressing return. "Password incorrect"

@MatteoGheza
Copy link

@btsimonh

@btsimonh
Copy link
Owner

btsimonh commented Aug 3, 2020

seems they may have set a root password... If you extracted the user jffs2 partition, you could examine it to see if there is anything executable in it which you could modify to run a similar passwd reset to the script I gave an example of.... just be aware that it's an older jffs2 - small changes seem to work ok with the later fs drivers, but major changes fail. So watch your logs after applying a mod, and keep a backup.

@Aragur
Copy link
Author

Aragur commented Aug 3, 2020

@btsimonh

I cannot find any executable:

total 20
drwxr-xr-x 4 root  root      0 Jan  1  1970 ./
drwxr-xr-x 3 simon users  4096 Aug  1 14:24 ../
-rw-r--r-- 1 root  root    174 Oct 28  2017 dev_id.json
-rw-r--r-- 1 root  root      0 Aug  1 14:20 flag_debug_dev_start
-rw-r--r-- 1 root  root      6 Jan  1  1970 flag_sensor_model
-rw-r--r-- 1 root  root      0 May 12  2018 flag_sys_ok_audio_off
-rwxr-xr-x 1 root  root   2807 May 13  1971 gmlib.cfg*
drwxr-xr-x 2 root  root      0 Jan  4  2019 important_data/
-rwxr-xr-x 1 root  root  10488 Jan  4  2019 sbull.ko*
-rw-r--r-- 1 root  root     20 Jun 16 19:31 test_log_reboot
-rw-r--r-- 1 root  root     44 Jan  4  2019 upgrade_patch_info

Directory important_data:

total 7
drwxr-xr-x 2 root root    0 Jan  4  2019 ./
drwxr-xr-x 4 root root    0 Jan  1  1970 ../
-rwxrwxrwx 1 root root 6932 Nov  9  2018 feed_dog*

@NightDragon1
Copy link

NightDragon1 commented Aug 5, 2020

You can hijack almost any process or linux exectubale ad create a kind of wrapper for it also resetting the password.
Or, maybe easier, replace the password hash in the /etc/shadow file... but it might be located on another partition as the user one.

@Aragur
Copy link
Author

Aragur commented Aug 24, 2020

Hey,

I'm completely stuck I don't know what I should do next..

Replaceing the shadow file didn't work, because on every reboot a new password is generated..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants