LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-09-2012, 05:03 PM   #1
obi1andKobe
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
passwd: Authentication token manipulation error - Cent OS 5.7


Good Afternoon,

Upon trying to work on my school project this morning, I am running into a problem trying to ssh/log in with a root account; the system won't take my credentials. Although I am positive of the password I am typing, I have decided to reset my root password. After booting into single user mode and trying the "passwd" command, I receive the error:

passwd: Authentication token manipulation error
screenshot:http://i44.tinypic.com/2afwqab.jpg

Any help is greatly appreciated as this project is 70% percent of my grade. What other options do I have to get this resolved without re-installing?
 
Old 03-09-2012, 05:30 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi obi1andKobe,

Welcome to LQ!!!

Do you have selinux enabled? If yes then when you edit kernel line in grub menu at the time of boot (for booting in single user mode) put following at the end as well and then give it a try:

Code:
selinux=0
 
Old 03-09-2012, 05:57 PM   #3
obi1andKobe
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for the warm welcome and quick advice. Unfortunately, I am still getting the same error. Any other suggestions that I can do?
 
Old 03-09-2012, 06:12 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Alright.

I was able to duplicate your issue by renaming my /etc/shadow file :-) Check if you have got /etc/shadow file or not? If it does not exist then look for /etc/shadow-. If /etc/shadow- file does exist then copy it as /etc/shadow using the following command:

Code:
cp /etc/shadow- /etc/shadow
And then try to set root password.
 
1 members found this post helpful.
Old 03-09-2012, 06:15 PM   #5
obi1andKobe
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I tried this command and it seems to have fixed the problem.

" The pwconv command creates shadow from passwd and an optionally
existing shadow"



I am testing now; but after running that passwd worked as it should. Thanks for pointing in the right direction.
 
Old 01-16-2014, 04:25 PM   #6
RayGo75
LQ Newbie
 
Registered: Jun 2010
Location: Whiting, NJ
Distribution: Debian Squeeze
Posts: 14

Rep: Reputation: 0
Same problem solution did not work

I have not logged into my LINUX box for a long time (almost 2 years, pc keyboard was missing some keys and I just got a new keyboard for it and installed it) I am bad LINUX admin.

I can not remember my user login password or my root password.

I found this http://pve.proxmox.com/wiki/Debian_reset_root_password on how to get into single user but when I tried to reset the password with passwd I got the same error as obi1andKobe.

I tried setting selinux to 0 and when I look for the /etc/shadow file there is one (from feb 10 2012, I guess the last time I logged in).

I can not do anything with the shadow file I keep getting the message that the file system is READ-ONLY.

exact message reads "rm: cannot remove 'shadow': Read-only file system"

please help I really want to start using my Linux again I have missed it.
 
  


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
[SOLVED] passwd: Authentication token manipulation error ichigoai Linux - Software 3 09-21-2011 03:27 AM
passwd: Authentication token manipulation error Rednameless Linux - Security 1 12-18-2006 07:47 AM
passwd: Authentication token manipulation error paul_mat Linux - Networking 0 07-04-2006 04:24 AM
passwd: Authentication token manipulation error paul_mat Linux - Networking 0 05-18-2006 06:21 PM
passwd:Authentication token manipulation error jovie Linux - Security 3 05-10-2006 02:46 AM


All times are GMT -5. The time now is 04:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration