1753909 Members
8971 Online
108810 Solutions
New Discussion юеВ

password change with nis

 
Yogender Yogi
Occasional Contributor

password change with nis

When a user attempt to change her password, using passwd from the command line, she was asked to change her 'local password' after the NIS password had been changed. (see below).

We never created or recognised this 'local password' and also do not know what should be supplied.

Thus, the server response with 'Sorry'. Could you help to remove this message if it is not needed at all ?

===============================
osstbsys:/m/home/moli (12) moli% passwd
Changing password for moli on NIS server
Old NIS password:
New password:
Re-enter new password:
NIS(YP) passwd/attributes changed on osstbsys, the master NIS server.

Changing local password for moli
Old password:
Sorry.
osstbsys:/m/home/moli (13) moli%
================================

Yogi
6 REPLIES 6
V. Nyga
Honored Contributor

Re: password change with nis

Hi Yogi,

I've never seen this before, but I could imagine that you have the user twice.
One time he is defined at the NIS server and maybe a second time at the client.
You should check the local /etc/passwd at the client.
It has to look like my example file.

Regards
Volkmar
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: password change with nis

Hi Yogi,

I've never seen this before, but I could imagine that you have the user twice.
One time he is defined at the NIS server and maybe a second time at the client.
You should check the local /etc/passwd at the client.
It has to look like my example file.

Regards
Volkmar

More explanation:
No local user should be defined except for the needed ones for admin processes.
The '+' is for the users from the NIS server.
*** Say 'Thanks' with Kudos ***
Yogender Yogi
Occasional Contributor

Re: password change with nis

The /etc/passwd file on NIS master has to contain the user. otherwise how the maps are going to be generated
Yogi
V. Nyga
Honored Contributor

Re: password change with nis

Hi again,

is the user changing her password at the NIS master? Sorry that wasn't clear for me.
What does 'ypwhich' says?

Volkmar
*** Say 'Thanks' with Kudos ***
Balaji N
Honored Contributor

Re: password change with nis

hi
used to have this problem frequently. so i always used to change the password from the nisclients.

alternatively, you can ask the user to use

passwd -r files or nis to change the passwd


or use yppasswd to change the nis passwords.

hope this helps.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Dean Johnson_10
Advisor

Re: password change with nis

Hi

I am getting the same problem on my NIS master server. The "Old password" for local appears to be the new NIS password. This only happens on my NIS master (I am using /etc/passwd to create the maps). Unfortunately my users dont have access to the shell so cannot run the passwd command. Did anyone find a solution to this problem ? Do I need to amend my map to use another file other than /etc/passwd ?

Regards

Dean Johnson