Linux password reset with init=/bin/bash

init=/bin/bash is my usual technique for resetting a forgotten linux root password. However, I recently received a strange error message (which I forget) after entering my new password. I say strange because it doesn’t indicate the real problem: the filesystem may still be mounted as read-only, even if the output of the mount command says it’s mounted read-write. Thus, try:

mount -o remount,ro /

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s