LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-03-2008, 05:09 AM   #1
tahrenyie85
Member
 
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50

Rep: Reputation: 15
How to recover my root password?


Hi, how can i recover my root password?
 
Old 01-03-2008, 05:23 AM   #2
Aro2Matic
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
if you are using lilo:
edit boot line and add 'linux single'
and recover with 'passwd'

if you are using grub:
edit boot line and add 'init 0'
and recover with 'passwd'
 
Old 01-03-2008, 05:46 AM   #3
tahrenyie85
Member
 
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
Oic. I have 1 more questions. Why i can use sudo -i with my root password. but i can't use my root password using su command?
 
Old 01-03-2008, 05:52 AM   #4
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Dear user, the question is not at all clear. Please make it understandable. What are you trying to do? Logging in as SuperUser? You can use the root password to do so
 
Old 01-03-2008, 05:59 AM   #5
tahrenyie85
Member
 
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
what i meant is, i cannot use su command, but can use sudo -i command when i was using the same root password.
 
Old 01-03-2008, 06:05 AM   #6
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
What is the mode for the file /etc/sudoers ?
 
Old 01-03-2008, 06:16 AM   #7
tahrenyie85
Member
 
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
sudoers mode is -r--r-----
 
Old 01-03-2008, 06:17 AM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
You can only access root permission with Sudo in Ubuntu, you cannot switch user to root.
 
Old 01-03-2008, 06:25 AM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Change root password for Ubuntu or FC.
 
Old 01-03-2008, 06:28 AM   #10
tahrenyie85
Member
 
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
ya, but i can use sudo -i but not su. I will try later after changing my root password, thx.
 
Old 01-03-2008, 10:52 AM   #11
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Quote:
Originally Posted by tahrenyie85 View Post
Oic. I have 1 more questions. Why i can use sudo -i with my root password. but i can't use my root password using su command?
with sudo you have been given spesial privilege, and therefore enter your own password as verification.
su, on the otherhand change to that user (or root if non is specified), and enter the password to the user being su'ed to.
 
Old 01-03-2008, 04:59 PM   #12
lopoetve
Member
 
Registered: Aug 2001
Distribution: Too many.
Posts: 102

Rep: Reputation: 15
Quote:
Originally Posted by tahrenyie85 View Post
what i meant is, i cannot use su command, but can use sudo -i command when i was using the same root password.
because SU switches users, not runs commands.
 
  


Reply



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 i recover a lost Root password sanatrac Linux - Security 5 09-13-2007 06:22 AM
How to recover the root password? hg7688 Linux - Software 3 07-25-2006 03:20 AM
Is there any way to recover my root password... deepu_ks Linux - Security 4 08-03-2005 10:41 AM
recover root password sophie Linux - Newbie 1 08-05-2003 07:19 PM
Recover Root password Dannyb Linux - Newbie 7 10-25-2001 12:04 PM

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

All times are GMT -5. The time now is 05:47 PM.

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
Open Source Consulting | Domain Registration