Created 06-02-2017 03:29 PM
Could anyone please let me know how to reset password for root user to connect via ssh?
Created 06-02-2017 03:55 PM
See this thread: https://community.hortonworks.com/questions/67916/reset-root-password-on-docker-sandbox.html
If you find this post useful, please "accept" the answer.
Created 06-02-2017 04:03 PM
Adding to the response. Take a look at the step-by-step instructions by @S Mahapatra in the link that Sonu provided.
Created 06-02-2017 04:17 PM
this link provide details on how to reset password for other users, not for root user. I want to reset password for "root" user.
Created 06-02-2017 05:10 PM
Login to the docker instance as root with default password as "hadoop"
ssh firstname.lastname@example.org -p 2222
The you can use "passwd" command to reset the password.
Created 06-03-2017 03:50 PM
I used this command to change my password.
Created 06-02-2017 05:23 PM
Earlier, I have changed the default password "hadoop" to other password and forgot the changed one. Now,I want to reset the new password.
I tired with this default password "hadoop", but no luck.
Created 06-02-2017 05:25 PM
At the Docker Level:
Did you try the following:
$PASS='YOUR_NEW_PASSSWORD' echo -e "$PASS\n$PASS" | sudo docker exec -i <container-id-or-name> passwd
Or may be docker command option "RUN echo newtestpassword | passwd root" in a Dockerfile
In single user mode you should be able to do so. Can you please try this: https://www.liberiangeek.net/2014/09/reset-forgotten-root-password-centos-7-servers/
Created 06-03-2017 03:08 PM
To execute these commands, I have to get onto terminal ,to get on to terminal i have to use root or super other user credentials, but i have only root user and i am trying to reset the password for the same. Please let me know if I am missing anything here or is there any other way to acheive the same.
I am able to get in with my old password.