Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: passwd: Authentication token manipulation error

  1. #1
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    passwd: Authentication token manipulation error

    Hello,

    While trying to assign password to one of my user, I am getting this error message

    Code:
    serveradmin@openserver:~/LAMP$ sudo passwd salaryuser
    passwd: Authentication token manipulation error
    passwd: password unchanged
    I also tried this -

    Code:
    serveradmin@openserver:~/LAMP$ sudo mount -rw -o remount /
    serveradmin@openserver:~/LAMP$ su root
    Password:
    root@openserver:/home/serveradmin/LAMP# passwd salaryuser
    passwd: Authentication token manipulation error
    passwd: password unchanged
    Can anybody help me?

  2. #2
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: passwd: Authentication token manipulation error

    bump

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,471
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: passwd: Authentication token manipulation error

    Quote Originally Posted by maverickaddicted View Post
    Code:
    serveradmin@openserver:~/LAMP$ sudo mount -rw -o remount /
    That's not the correct syntax. Use this instead:

    Code:
    sudo mount -n -o remount,rw /
    Make sure there's no spaces in the "remount,rw" string. The "-n" switch tells the OS not to try and rewrite /etc/mtab, which would be impossible since the filesystem is marked read-only.

    If, however, the filesystem really is marked read-only, that means it has errors that need to fixed with fsck. Once you've remounted the root filesystem as writable, run

    Code:
    sudo touch /forcefsk
    and reboot. That will force a filesystem check when the machine starts up again.

  4. #4
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: passwd: Authentication token manipulation error

    Quote Originally Posted by SeijiSensei View Post
    That's not the correct syntax. Use this instead:

    Code:
    sudo mount -n -o remount,rw /
    Make sure there's no spaces in the "remount,rw" string. The "-n" switch tells the OS not to try and rewrite /etc/mtab, which would be impossible since the filesystem is marked read-only.

    If, however, the filesystem really is marked read-only, that means it has errors that need to fixed with fsck. Once you've remounted the root filesystem as writable, run

    Code:
    sudo touch /forcefsk
    and reboot. That will force a filesystem check when the machine starts up again.
    Sorry, but this didn't work. I am getting same error.

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,471
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: passwd: Authentication token manipulation error

    So did the system run fsck at boot? What does mount say about the root filesystem? Is it marked as rw?

    How about this?
    Code:
    ls -l /etc/passwd /etc/group/ /etc/shadow
    passwd and group should be owned by root:root and have 644 permissions. /etc/shadow is owned by root:shadow on my system with 640 permissions. It should also work if shadow is owned by root:root with 600 permissions. I've actually not seen the use of a "shadow" group before, but I'm more used to RedHat flavors when it comes to these details.
    Last edited by SeijiSensei; February 10th, 2012 at 06:25 PM.

  6. #6
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: passwd: Authentication token manipulation error

    Yes, system ran the file check on boot. Here is the output of that command -

    Code:
    serveradmin@openserver:~$ ls -l /etc/passwd /etc/group /etc/shadow
    -rw-r--r-- 1 root root   1200 2012-02-08 18:17 /etc/group
    -rw-r--r-- 1 root root   2648 2012-02-08 18:17 /etc/passwd
    -rw-r----- 1 root shadow 1648 2012-02-08 18:17 /etc/shadow

  7. #7
    winh8r is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    Sep 2007
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: passwd: Authentication token manipulation error

    Make sure the username in /etc/shadow is exactly the same as the username in /etc/passwd.

    Quite often the cause of this problem when they are different.




    If you are running likewise-open then please take a look here at a known bug and a workaround::

    https://bugs.launchpad.net/ubuntu/+s...en/+bug/302026
    Last edited by winh8r; February 11th, 2012 at 11:16 AM.

  8. #8
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: passwd: Authentication token manipulation error

    I am not running likewise open. Also, /etc/shadown file contains

    Code:
    salaryuser:!:15377:0:99999:7::
    and /etc/passwd file contains

    Code:
    salaryuser:x:1001:33:Salary User,,,:/home/serveradmin/LAMP/nexus_salary/:/bin/bash

  9. #9
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: passwd: Authentication token manipulation error

    Still looking for some solution.

  10. #10
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: passwd: Authentication token manipulation error


Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •