LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 05-26-2006, 05:57 PM   #1
neilthereildeil
LQ Newbie
 
Registered: May 2006
Posts: 19

Rep: Reputation: 0
Root password not working...


Please help me. My root password is not working. I was trying to change the password for another user, and i think i accidentally changed the root password. in grub, i added "single" to the end or the kernel argument line, and got root access that way. After that, i tried to change the password as root, but it will not let me. i get a "Token manipulation error". How can i change the password? Thank You.
 
Old 05-26-2006, 06:24 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I am not sure of the answer but using the search feature here on this site showed many post on the subject. Search using
Token manipulation error
 
Old 05-26-2006, 07:06 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Since in single mode, you are the root user, you can zero out the root password, then reboot normally. Edit out the characters between the first two colons in the /etc/shadow file's root record.

After you boot up again, you can log in without a password and use the "passwd" program to set a new password.

Last edited by jschiwal; 05-26-2006 at 07:07 PM.
 
Old 05-26-2006, 08:35 PM   #4
neilthereildeil
LQ Newbie
 
Registered: May 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Yes. thats exactly what i did. right now im running w/o a root password. i booted up fully and logged in fine w/o a password, but i still cannot change the password. i get the same problem, "passwd: Authentication Failure"
 
Old 05-27-2006, 09:03 AM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Did not mention distro you were using. I am guessing Pam is enabled and this is stopping you from using the passwd command. I am not sure but if logged in as root and not needing a password then I think you can modify /etc/pamd.passwd file if it exist. In it at the top ad the line.
Code:
auth    sufficient      pam_permit.so
Save and exit. Try to change the password now.

Brian1
 
Old 05-27-2006, 01:55 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
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
Root password not working neilthereildeil Linux - General 11 06-01-2006 12:33 PM
root password not working for su brenainn Linux - Security 1 10-08-2005 04:40 AM
root password half-working... phoenixtx Linux - General 4 05-02-2004 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:54 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
Open Source Consulting | Domain Registration