0
Vindieselwalker

Don't know the root password!!!

Recommended Posts

I have 1 Armbian installed in the SBC.

 

I want to login but I don't have any idea what is the root password.

 

I saw there are few methods of breaking it and can bypass / reset password.

 

I noticed that this method is 1 of the easiest way, but it doesn't work.

 

By editing  /etc/shadow,

root:$6$6fRIGsIb$dt.U84pEFgqpCSmlU9Nn2SLxBK8mYxxZMethrY35kqPg09aS/8e5xQ08excoGzdta6E5XmF2iFQC5J4EJVuM31:17401:0:99999:7::: daemon:*:17326:0:99999:7::: bin:*:17326:0:99999:7::: sys:*:17326:0:99999:7::: sync:*:17326:0:99999:7::: games:*:17326:0:99999:7::: man:*:17326:0:99999:7::: lp:*:17326:0:99999:7::: mail:*:17326:0:99999:7::: news:*:17326:0:99999:7::: uucp:*:17326:0:99999:7::: proxy:*:17326:0:99999:7::: www-data:*:17326:0:99999:7::: backup:*:17326:0:99999:7::: list:*:17326:0:99999:7::: irc:*:17326:0:99999:7::: gnats:*:17326:0:99999:7::: nobody:*:17326:0:99999:7::: systemd-timesync:*:17326:0:99999:7::: systemd-network:*:17326:0:99999:7::: systemd-resolve:*:17326:0:99999:7::: systemd-bus-proxy:*:17326:0:99999:7::: messagebus:*:17326:0:99999:7::: ntp:*:17326:0:99999:7::: avahi-autoipd:*:17326:0:99999:7::: sshd:*:17326:0:99999:7::: rbcs:$6$SMHou.Qx$ZFNh7PSANkFtf7LtUnkBlMZNzoPw5Yj8VHhvpwcpbyvTI4AqIN.NEpWL2uSDI1dVuJLZrh2WS05yyPhHalwRI/:17401:0:99999:7::: gpsd:*:17401:0:99999:7::: Which segment to be removed? root:$6$6fRIGsIb$dt.U84pEFgqpCSmlU9Nn2SLxBK8mYxxZMethrY35kqPg09aS/8e5xQ08excoGzdta6E5XmF2iFQC5J4EJVuM31:17401:0:99999:7:::

I tried many times by removing "$6$6fRIGsIb$dt.U84pEFgqpCSmlU9Nn2SLxBK8mYxxZMethrY35kqPg09aS/8e5xQ08excoGzdta6E5XmF2iFQC5J4EJVuM31" and with left with the new line of:-

root::17401:0:99999:7::: <---- Is this correct or I am done something very wrong.https://solitaire.onl/ 9apps.ooo/ https://bluestacks.vip/

 

Please advise and thank you in advance.

 

Regards.!!

Share this post


Link to post
Share on other sites

Presuming this is not a brand-new install, correct?

 

How are you able to edit /etc/shadow?

 

If you are already logged in as root you can just use 'passwd' to change the passwd.  When running as root you do not need to provide the existing password to change a password.

 

If you can login as a user with 'sudo' access, you can use 'sudo -i' to gain a root shell then follow the step above.

 

If you have mounted your SD card on another linux instance, you should be able to use:

passwd -R <path_to_mount_point> root

<path_to_mount_point> is where you have your SD card mounted (not the full path to the passwd/shadow files)

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0