Re: Can't change users password

From: Kasper Dupont (kasperd@daimi.au.dk)
Date: 02/12/03


From: Kasper Dupont <kasperd@daimi.au.dk>
Date: Wed, 12 Feb 2003 15:52:00 +0100

Jacki wrote:
>
> When I try to change users password I get this error:
> "passwd: Authentication token manipulation error"
> root can change the password without any problems.
> Can someone help me find the problem
> I am running RH-7.3

First check all the obvious possibilities:
1) Did you type the old password correctly
2) Is the new password long enough
3) Did you type the new password correctly both times.

If that is not the problem try looking in the logs
/var/log/secure and /var/log/messages to see if
anything was logged.

If everything else fails try strace. Tracing passwd
is a litle tricky because it is a suid executable.
Open two shells, one as root and one as the user that
wants to change password. In the user shell type
echo $$ to get the pid of the shell, then type the
passwd command but do not press return yet. In the
root shell then type strace -f -p pid with the pid
of the user shell. You could additionally use the -o
option for strace to dump the output to a file.

Here is sample session:

[kasperd:pts/3:~] echo $$
21098
[kasperd:pts/3:~] passwd
Changing password for kasperd
(current) UNIX password:
[kasperd:pts/3:~] exit

[root:pts/5:~] strace -o passwd.strace.txt -f -p 21098
[root:pts/5:~]

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);


Relevant Pages

  • Re: hi all..
    ... and someone gets access your shell account, ... Only root can install an su binary. ... Of course, if I have sudo ...
    (Fedora)
  • Re: Kmail offline
    ... GUI sessions as root? ... I will not help you with problems running GUI as root. ... That was a straight copy paste from the shell it ran from. ... checking I could get it to do said the install was all right. ...
    (Fedora)
  • Re: csh as default root Shell
    ... Another source is the the FreeBSD Handbook that is available ... As for changing the root shell, it is probably not a good idea. ... Put the new root account you created farther down in the passwd file ...
    (freebsd-questions)
  • Re: Root user permission
    ... in my computer I have set a root password with "sudo passwd root", but, ... have trouble in running those applications. ... The Christian Science Monitor ...
    (Ubuntu)
  • Re: "No Shell"
    ... There is simply no need to login as root - ever, ... > you don't have to guard(and spread) root's password anymore. ... And change the shell or whatever it s/he just well damn ... Other than that nothing else should depend on root shell, ...
    (comp.unix.admin)