LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-10-2012, 11:54 AM   #1
Shahid nx
Member
 
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.

Thanks,
shahid nx
 
Old 07-10-2012, 11:58 AM   #2
Kustom42
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:

http://docs.redhat.com/docs/en-US/Re...ng-single.html

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.
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 AM.

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