Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
passwd: authentication token manipulation error (PAM)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
flox
n00b
n00b


Joined: 29 Nov 2002
Posts: 45

PostPosted: Thu Dec 05, 2002 1:59 pm    Post subject: passwd: authentication token manipulation error (PAM) Reply with quote

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:

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:

#%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
Back to top
View user's profile Send private message
flox
n00b
n00b


Joined: 29 Nov 2002
Posts: 45

PostPosted: Sun Dec 08, 2002 5:17 pm    Post subject: Problem solved Reply with quote

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:

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
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Wed Apr 23, 2003 2:38 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
petkir
n00b
n00b


Joined: 25 Sep 2003
Posts: 4

PostPosted: Wed Nov 05, 2003 1:49 pm    Post subject: Reply with quote

I think this is not a problem with the pam authentication
try:
Code:
chmod +s /usr/bin/passwd


Read more: https://forums.gentoo.org/viewtopic.php?p=629146#629146

have a lot of fun
Back to top
View user's profile Send private message
bsaunder
n00b
n00b


Joined: 10 Nov 2003
Posts: 1

PostPosted: Mon Nov 10, 2003 3:14 pm    Post subject: Problem maybe with gentoo packages? Reply with quote

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
Back to top
View user's profile Send private message
boroshan
l33t
l33t


Joined: 16 Apr 2003
Posts: 730
Location: upside down

PostPosted: Tue Mar 09, 2004 11:30 am    Post subject: Reply with quote

mmm hmm... similar list

Code:
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!
Back to top
View user's profile Send private message
airhead
n00b
n00b


Joined: 01 Jul 2002
Posts: 33
Location: Auckland, New Zealand

PostPosted: Wed Mar 17, 2004 9:57 am    Post subject: Reply with quote

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

Cheers
Back to top
View user's profile Send private message
barrct
n00b
n00b


Joined: 13 Apr 2004
Posts: 63
Location: Naples, FL

PostPosted: Fri May 21, 2004 8:01 pm    Post subject: hum..... Reply with quote

My postgres had the same problem...... Something to do with the installs from the ebuilds?
Back to top
View user's profile Send private message
soulsolu
n00b
n00b


Joined: 27 Aug 2004
Posts: 1
Location: Michigan

PostPosted: Fri Aug 27, 2004 5:34 pm    Post subject: Reply with quote

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:
df .

_________________
You might as well try - got nothin to loose
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5871

PostPosted: Fri Aug 27, 2004 5:57 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
marcowave
Apprentice
Apprentice


Joined: 10 Feb 2004
Posts: 284
Location: Paris, France

PostPosted: Fri Oct 01, 2004 8:35 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
analogbytes
n00b
n00b


Joined: 01 May 2004
Posts: 7

PostPosted: Wed Oct 06, 2004 7:17 pm    Post subject: Reply with quote

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:
qmaild:*:9797:0:::::


Can anyone help?

Thanks
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sat Oct 23, 2004 11:13 pm    Post subject: Reply with quote

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:
qmaild:*:9797:0:::::


Can anyone help?

Thanks


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

Code:
nano /etc/passwd

change the line
Code:
mysql:x:60:60:mysql:/var/lib/mysql:/bin/false

in
Code:
mysql:x:60:60:mysql:/var/lib/mysql:/bin/bash

Hope this could help, with your own user ;-) !!
Coda
_________________
# emerge -C gelmini
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Aug 02, 2005 7:41 am    Post subject: Reply with quote

This post may also be helpful: https://forums.gentoo.org/viewtopic-p-2130101.html#2130101
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum