Discussion Locked
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).
by chipw
This question was closed by the author
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending
0 helpful
7 replies
0 helpful
6 replies
Question Locked
RE: How to fix the Docker and UFW security flaw
0 helpful
3 replies
Discussion Locked
Which Linux works best on old phone or tablet?
0 helpful
5 replies
Discussion Locked
My Job and Company
0 helpful
3 replies