Discussion Locked

password

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do we discover the root password on a redhat 7 box? We have no clue what it is.

3 replies

by feizhou

if you need to regain control of your box then you can shut down the machine and boot it into single user mode. When Lilo shows up, pass the parameter 'single' to the kernel. If you get a GUI menu then you must tell to go to text mode first and thenchoose your kernel image and pass the parameter 'single'. This will allow you to change the root password and regain control of the box. Of course this assumes the box is yours and that you have physical access to the keyboard of the box.

eg. boot: linux single
where linux is the default boot selection and single is the parameter.

by chipw

Thankyou, that worked, I'd forgotten how to boot into single-user mode in linux, and then I discovered chpasswd doesn't work in linux. I figured it out, it's passwd. (I'm a freebsd user, not a linux user).

This discussion is closed to new replies.