Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

yppasswd problem - Error while changing the NIS password

5,895 views
Skip to first unread message

Jeffery Smith

unread,
Feb 8, 2002, 1:35:06 PM2/8/02
to
I know others have had this problem, but I can't find a solution
anywhere. When I try to change my password using 'yppassd' I get the
following error:
-----------------------------------------------------
[smith@garfield smith]$ yppasswd
Changing NIS account information for smith on zeus.
Please enter old password:
Changing NIS password for smith on zeus.
Please enter new password:
Please retype new password:
Error while changing the NIS password.
The NIS password has not been changed on zeus.
-----------------------------------------------------

In this senario:
garfield = NIS Client (my workstation)
zeus = NIS Server

I have tried stoping 'ypserv' and then running it on a console with
'ypserv -d' to see the messages, but I don't see anything helpful at
all. This appears to be partially working because it successfully
reads and checks my old password.

I checked rpcinfo and it looks fine to me:
-----------------------------------------------------
[root@zeus yp]# rpcinfo -p | grep yp
100007 2 udp 632 ypbind
100007 1 udp 632 ypbind
100007 2 tcp 635 ypbind
100007 1 tcp 635 ypbind
100004 2 udp 944 ypserv
100004 1 udp 944 ypserv
100004 2 tcp 947 ypserv
100004 1 tcp 947 ypserv
100009 1 udp 699 yppasswdd
-----------------------------------------------------
I can 'ypcat' my password file with no trouble. In fact, all my NIS
maps are working fine. I just can't change any passwords.

It may be interesting to note that on the NIS server (zeus) I can't
use the 'passwd' command either.
-----------------------------------------------------
[root@zeus yp]# passwd smith
Changing password for user smith
New password:
Retype new password:
RPC: Can't encode arguments
The password has not been changed on zeus.
passwd: Failed preliminary check by password service
-----------------------------------------------------
It looks to me like this has something to do with RPC, but I really am
clueless.

All help is greatly appreciated!

Jeffery Smith
sm...@skycomputers.com

Philippe Chauvat

unread,
Feb 15, 2002, 9:54:20 AM2/15/02
to
Hi,

I've exactly the same... If you have any information about, it would be
very appreciate to have them.
Thanks a lot
Philippe

Jeffery Smith a écrit :

Bill McEachran

unread,
Feb 20, 2002, 8:57:10 PM2/20/02
to
Interesting ... I've got the same problem with both RedHat 7.1 and
Suse 7.3.
I've found that if, as root on the client, I run 'pwunconv' and
'pwconv' that the client then picks up the changed password. Wierd.
.... I'm thinking a
/etc/nsswitch.conf problem? I dunno .... no hair left to pull out.

sm...@skycomputers.com (Jeffery Smith) wrote in message news:<fde00667.02020...@posting.google.com>...

santiag...@gmail.com

unread,
May 16, 2013, 5:46:00 PM5/16/13
to
Some years later..

How I get to change the user password with yppasswd for username as root;

1. Edit the /etc/yp/shadow and remove the password field of the user.
2. Save and close.
3. Run yppasswd username again.


Example:

If I were to change the password of henryk, I would do as follows;

1. Change the entry for the user at /etc/yp/shadow
henryk:dsdkljHjshd3KsaEd:51265::::::
to
henryk::51265::::::

2. Save and close.
3. Run yppasswd henryk

> Changing NIS account information for henryk on myserver.
> Please enter root password:
> Changing NIS password for henryk on myserver.
> Please enter new password:
> Please retype new password:
>
> The NIS password has been changed on myserver.

Hope this helps someone out there.

davidrami...@gmail.com

unread,
Dec 11, 2013, 2:30:39 PM12/11/13
to
As this fails silently (no traces on /var/log/messages, /var/log/scure) of what went wrong, I resulted here...

In my particular case, the user to have its password changed had it actually disabled inside /etc/shadow such as:
johndoe:!!:16050:0:120:7::17896:

So as per santiag's hint I edited the shadow file (vipw -s) and removed the !! signs... then yppasswd worked as needed.

Just my 1 cent here...

Mateusz Bieniek

unread,
Feb 15, 2021, 11:52:17 AM2/15/21
to
Hi there,

I've had the same issue just now and we fond that our new NIS server did not have correctly configured YPPWDDIR in the /etc/default/nis and was not pointing at our passwd file. For that reason it was silently failing.

Best, Mat

Carlos E.R.

unread,
Feb 15, 2021, 4:04:09 PM2/15/21
to

On 15/02/2021 17.52, Mateusz Bieniek wrote:
> On Wednesday, December 11, 2013 at 7:30:39 PM UTC, davidrami...@gmail.com wrote:
>> On Thursday, May 16, 2013 4:46:00 PM UTC-5, santiag...@gmail.com wrote:
>>> On Friday, February 8, 2002 3:35:07 PM UTC-3, Jeffery Smith wrote:
>>>
>>>> I know others have had this problem, but I can't find a solution
>>>
>>>> anywhere. When I try to change my password using 'yppassd' I get the
>>>
>>>> following error:

...

> I've had the same issue just now and we fond that our new NIS server
> did not have correctly configured YPPWDDIR in the /etc/default/nis and
> was not pointing at our passwd file. For that reason it was silently
> failing.

Mateusz,

haven't you noticed that you are replying to a thread from 2013?


--
Cheers, Carlos.

Aragorn

unread,
Feb 24, 2021, 9:32:22 PM2/24/21
to
On 24.02.2021 at 17:57, Johann Beretta scribbled:

> On 2/15/21 8:52 AM, Mateusz Bieniek wrote:
>
> Dude...
>
> On Thursday, May 16, 2013 4:46:00 PM UTC-5, santiag...@gmail.com
> wrote:
> > On Friday, February 8, 2002 3:35:07 PM UTC-3, Jeffery Smith wrote:
>
> Really? A 19 year old thread?

See, this is why most of us filter out anything coming in through
Google Groups. ;)


--
With respect,
= Aragorn =

0 new messages