Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ex employee logged into to box and changed the root password, trued to start in single user mode, but not coming right
Long version:
* Loaded up grub
* Typed the following in Boot Options:
init=/bin/sh
* Takes me to a prompt where I then enter the command "passwd"
* Returns with a "command could not be found" output
Tried changing the directories to /usr/bin and /sbin but didn't work either, any ideas?
Ex employee logged into to box and changed the root password, trued to start in single user mode, but not coming right
Long version:
* Loaded up grub
* Typed the following in Boot Options:
init=/bin/sh
* Takes me to a prompt where I then enter the command "passwd"
* Returns with a "command could not be found" output
Tried changing the directories to /usr/bin and /sbin but didn't work either, any ideas?
Not sure what you mean by "not coming right", but instead of going through Grub, boot from your CD/DVD media. Go into "Rescue" mode. From there, you'll be able to mount the hard drive. You can try to run the "passwd" command from there (you'll be in as root at that point), or you can manually edit the /etc/shadow file, and remove the password for root.
And alternative is to find said ex-employee, and threaten them with bodily harm, until they tell you the password.
Another option is to boot with a live cd, mount the partition your system is on in a folder somewhere and then chroot into it.
Quote:
Originally Posted by warlynx
* Loaded up grub
* Typed the following in Boot Options:
init=/bin/sh
* Takes me to a prompt where I then enter the command "passwd"
* Returns with a "command could not be found" output
That suggests that /usr is on a separate partition that has not been mounted. Mount everything in /etc/fstab with mount -a
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.