I want to change the password of a user in Ubuntu.
I am able to do this as root (administrator).
root@xxx:~# passwd testuser Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
While occurred the following error if doing this in the user's own account.
testuser@xxx:~$ passwd Changing password for testuser. (current) UNIX password: Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchanged
Other system info:
/is mounted as read/write.
And here are my permission settings:
root@xxx:~# ls -al /etc/shadow /etc/passwd -rw-r--r-- 1 root root 3083 Jul 23 15:17 /etc/passwd -rw-r----- 1 root shadow 3176 Jul 23 16:26 /etc/shadow root@xxx:~# ls -al $(which passwd) -rwxr-xr-x 1 root root 54256 May 17 2017 /usr/bin/passwd
Any suggestion is much appreciated!