Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

passwd: authentication token manipulation error (PAM)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
flox
n00b
n00b
User avatar
Posts: 45
Joined: Fri Nov 29, 2002 11:37 am

passwd: authentication token manipulation error (PAM)

  • Quote

Post by flox » Thu Dec 05, 2002 1:59 pm

I would be happy if someone could help me further with this one:

I have done useradd user and I can login correctly, but if I try to passwd as user I get the following error msg:

Code: Select all

passwd: authentication token manipulation error
I guess this is a PAM problem, but I don't know what to do. I have already emerged pam again, but that didn't help as well.
My pam.d/passwd looks like that (gentoo installed it like that):

Code: Select all

#%PAM-1.0
auth       required     /lib/security/pam_stack.so service=system-auth
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
I also thought, that it could be a problem of user rights. Since I can't execute a lot of commands like ping, passwd -l.
What rights do I have to add to get something like superuser, and could that be part of the problem? (But isn't changing a password something every regular user should be able to?)

If there is any other information I can provide to narrow down the problem, please just let me know.

regards,
Flox
Top
flox
n00b
n00b
User avatar
Posts: 45
Joined: Fri Nov 29, 2002 11:37 am

Problem solved

  • Quote

Post by flox » Sun Dec 08, 2002 5:17 pm

I have a box, which hasn't the capability to boot from cdrom, that's why I use the approach described in an other post: With tomsrtbt and I followed the instructions in there.
One instruction is:

Code: Select all

chown - R root.root /mnt/gentoo
which is fine if someone starts from stage1, but I assume if you start from stage3 you just take away all the right permission settings, which allow you to use commands like passwd, ping, etc. (my mistake)

I've redone everything from stage1 and it works fine.

regards,
Flox
Top
ixion
l33t
l33t
User avatar
Posts: 708
Joined: Mon Dec 16, 2002 1:53 pm

  • Quote

Post by ixion » Wed Apr 23, 2003 2:38 pm

I am having this same issue (token manipulation error), but really am not at any position to reinstall. This is my workstation at work which is going to be needed rigorlously in the next couple weeks.

Anyone have any insight on how to fix this without a format?
only the paranoid survive
Top
petkir
n00b
n00b
User avatar
Posts: 4
Joined: Thu Sep 25, 2003 9:41 am
Contact:
Contact petkir
Website

  • Quote

Post by petkir » Wed Nov 05, 2003 1:49 pm

I think this is not a problem with the pam authentication
try:

Code: Select all

chmod +s /usr/bin/passwd
Read more: http://forums.gentoo.org/viewtopic.php?p=629146#629146

have a lot of fun
Top
bsaunder
n00b
n00b
Posts: 1
Joined: Mon Nov 10, 2003 3:04 pm

Problem maybe with gentoo packages?

  • Quote

Post by bsaunder » Mon Nov 10, 2003 3:14 pm

I've had the same problem. I found that my /etc/password file and my /etc/shadow file were completely out of sync (there were about 22 accounts that were in the password file that were not in the shadow file. I don't know when this problem started, but the user accounts that were out of sync were:

xfs
vpopmail
squid
smmsp
qmails
qmailr
qmailq
qmailp
qmaill
qmaild
postgres
postfix
portage
nut
named
mysql
gdm
cyrus
cron
at
apache
alias


My suspicion is that some of the gentoo packages mucked with the password file without updating the shadow file some how.

I've fixed my problem by manually editing the shadow file and adding the missing entries. This is a real pain in the butt problem. It's the kind of thing that you don't expect to have a problem with and then it chews up some good time to fix it. Good luck to anyone else with the same problem.

-Bruce
Top
boroshan
l33t
l33t
User avatar
Posts: 730
Joined: Wed Apr 16, 2003 8:39 pm
Location: upside down
Contact:
Contact boroshan
Website

  • Quote

Post by boroshan » Tue Mar 09, 2004 11:30 am

mmm hmm... similar list

Code: Select all

vpopmail
portage
postfix
gdm
apache
smmsp
postgres
qmailq
qmailr
xfs
alias
cyrus
uml
squid
named
at
qmails
qmailp
qmaild
cron
mysql
nut
qmaill
Intrestingly, user "uml" which I hand created is in the list but others that I created are not. This is possibly due to using newuser rather than useradd to create the user. I had to use newuser because useradd found a group called uml and decided I wanted to add root to the group... mutter mutter grumble grouse gripe

I wonder if it's worth submitting a bug?
Don't let THEM immanentize the Eschaton!
Top
airhead
n00b
n00b
Posts: 33
Joined: Mon Jul 01, 2002 3:09 am
Location: Auckland, New Zealand

  • Quote

Post by airhead » Wed Mar 17, 2004 9:57 am

I just discovered that I have the same problem. Does anyone know why this occurs?

Cheers
Top
barrct
n00b
n00b
Posts: 63
Joined: Tue Apr 13, 2004 1:58 am
Location: Naples, FL
Contact:
Contact barrct
Website

hum.....

  • Quote

Post by barrct » Fri May 21, 2004 8:01 pm

My postgres had the same problem...... Something to do with the installs from the ebuilds?
Top
soulsolu
n00b
n00b
Posts: 1
Joined: Fri Aug 27, 2004 5:21 pm
Location: Michigan
Contact:
Contact soulsolu
Website

  • Quote

Post by soulsolu » Fri Aug 27, 2004 5:34 pm

Regarding gentoo “passwd: Authentication token manipulation error” messages, I found the same problem while installation 2004.2 from a universal CD. I discovered that during gentoo 2004.2 installation, if you fill the active installation partition (i.e., 0% free if you run “df .”) then you receive this specific error when attempting to change the passwd for root or others as well. I managed to perform this feat by extracting the stage3 file to the wrong location during installation :oops: It took me a while to run into enough problems that I started digging into it, and that was when I realized that the passwd error was related to the filesystem issue. After rebooting and booting off of the universal CD again, starting with a fresh / filesystem (ram disk???) I was able to proceed with changing the root passwd and the rest of the installation.

So, for those recieving the error check free disk space:

Code: Select all

df .
You might as well try - got nothin to loose
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Fri Aug 27, 2004 5:57 pm

I only had this problem when changing a user's name via editing /etc/passwd and forgetting to change /etc/shadow too. Could there be a broken ebuild out there adding users by manually appending /etc/passwd?

--beugh
Top
marcowave
Apprentice
Apprentice
User avatar
Posts: 284
Joined: Tue Feb 10, 2004 9:11 am
Location: Paris, France
Contact:
Contact marcowave
Website

  • Quote

Post by marcowave » Fri Oct 01, 2004 8:35 am

same problem... but only with users..... with root it change the password...

noone has the solution yet? :(
Linux User #351189 --->A.K.A. "Johnny"<---
Acer TM292LMi: PentiumM 1,5 GHz - 1 GB ram - Radeon 9700M 64MB - Intel 802.11b/g WLAN - DVD-RW - Gentoo Linux - KDE 3.5.2
GentooServer: AMD Athlon 700 MHz - 512 MB ram - HD 80 GB - Kernel 2.6 - Fluxbox
Top
analogbytes
n00b
n00b
Posts: 7
Joined: Sat May 01, 2004 11:40 pm

  • Quote

Post by analogbytes » Wed Oct 06, 2004 7:17 pm

I am having the same problem but when I corrected by hand I can now change the password , but can not log in as that user. Access denied. I did not know what each field meant so I just followed the syntax of most of the others.

Code: Select all

qmaild:*:9797:0:::::
Can anyone help?

Thanks
Top
codadilupo
Advocate
Advocate
Posts: 3135
Joined: Tue Aug 05, 2003 8:48 am

  • Quote

Post by codadilupo » Sat Oct 23, 2004 11:13 pm

analogbytes wrote:I am having the same problem but when I corrected by hand I can now change the password , but can not log in as that user. Access denied. I did not know what each field meant so I just followed the syntax of most of the others.

Code: Select all

qmaild:*:9797:0:::::
Can anyone help?

Thanks
try this way (as I did with mysql user):

Code: Select all

nano /etc/passwd
change the line

Code: Select all

mysql:x:60:60:mysql:/var/lib/mysql:/bin/false
in

Code: Select all

mysql:x:60:60:mysql:/var/lib/mysql:/bin/bash
Hope this could help, with your own user ;-) !!
Coda
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Tue Aug 02, 2005 7:41 am

This post may also be helpful: http://forums.gentoo.org/viewtopic-p-21 ... ml#2130101
No-one's more important than the earthworm.
Top
Post Reply

14 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic