LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Slackware 14.0 - End User changing password failed (https://www.linuxquestions.org/questions/linux-newbie-8/slackware-14-0-end-user-changing-password-failed-4175539477/)

freeelancers 04-12-2015 10:11 AM

Slackware 14.0 - End User changing password failed
 
Hi all,

I am slackware 14.0 user. Recently I face one problem. As a root i can change one of my normal user's (assuming Peter) password. However, when I login as Peter, and try to change the password, the system does not allow me to renew my password.


root@slackware:/etc# ls -la | grep shadow
-rw-r----- 1 root shadow 9 Nov 29 2013 gshadow
-rw------- 1 root root 0 Jun 20 2013 gshadow-
-rw-r----- 1 root shadow 2272 Apr 12 22:44 shadow
-rw------- 1 root root 2274 Apr 12 21:40 shadow-
root@slackware:/etc# ls -la | grep passwd
-rw-r--r-- 1 root root 2362 Apr 12 12:58 passwd
-rw------- 1 root root 2306 Jan 8 17:38 passwd-
-rw-r--r-- 1 root root 2305 Aug 11 2014 passwd~


peter@slackware:~$ which passwd
/usr/bin/passwd
peter@slackware:~$ ls -la /usr/bin/passwd
-rws--x--x 1 root root 68725 Sep 14 2012 /usr/bin/passwd*

peter@slackware:~$ passwd
Changing password for peter
Old password:
Incorrect password for peter.
The password for peter is unchanged.

One thing I can assure is the password I input is correct. I have another slackware 14 running on Dell R410, but it does not has this problem.


Please kindly advice. Thank you.

allend 04-13-2015 11:05 AM

I looked at this post once and thought "odd".
After some time, I looked again at this post and thought "weird".
After some more time, I looked yet again at this post and thought "really weird".

If the user password works for login, but not from the shell when 'passwd' is run, then my best guess is that there something about the user shell settings that is causing a character in the password to be mapped to a different character when typed.


All times are GMT -5. The time now is 06:14 PM.