Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 07-10-2012, 11:54 AM   #1
Shahid nx
Registered: Jan 2012
Posts: 46

Rep: Reputation: Disabled
forgot root password of linux?

Hi friends/sir
I forgot root password of linux machine. Actually i want to use strace command for myprocess. but it is telling to use it as a root user. Is there any method to recover password or to execute this command without login as root user. Please share if any idea.

shahid nx
Old 07-10-2012, 11:58 AM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Well if you are running a red-hat based distro like CentOS or fedora you can simply reboot into single user mode and reset the password with the 'passwd' command:

If you are using something like ubunutu there is no root user, everything is done via sudo. So if thats the case just put the word sudo infront of the command.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
forgot root password processguide Linux - Server 10 03-17-2008 02:08 AM
forgot root password:- Suse Linux 10.00 boxerdes SUSE / openSUSE 1 01-18-2006 02:25 PM
Forgot root password for Redhat Enterprise linux geordzilla Linux - Newbie 6 12-20-2005 01:43 AM
forgot root password ali_hammad Linux - Security 4 03-08-2005 02:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration