1

We use an LDAP-server, but we also use local accounts.

[jdoe@tst-03 ~]$ passwd
Changing password for user jdoe.
Changing password for jdoe.
(current) UNIX password:
Enter login(LDAP) password:

This is an account that exists locally on the server. Unfortunately when the user tries to change his password, passwd asks him for the LDAP password.

How can I allow this user to change his password locally ('/etc/shadow')? It should not be asking for the LDAP password.

ujjain
  • 3,983
  • 16
  • 53
  • 91

2 Answers2

1

If you tell you user to do

$ passwd -r files

then it'll only attempt to change the password locally.

Flup
  • 7,978
  • 2
  • 32
  • 43
1

The user only had the correct LDAP password and not the correct local password, meaning it would prompt for the LDAP password after the Unix password was rejected.

After verifying /etc/nsswitch.conf (was already correct) and manually changing the password in /etc/shadow, the user can change his local password.

ujjain
  • 3,983
  • 16
  • 53
  • 91