• yppasswd problem - Error while changing the NIS password

    From Mateusz Bieniek@21:1/5 to davidrami...@gmail.com on Mon Feb 15 08:52:13 2021
    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:

    -----------------------------------------------------

    [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



    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.
    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...
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Mateusz Bieniek on Mon Feb 15 22:01:26 2021
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johann Beretta@21:1/5 to santiag...@gmail.com on Wed Feb 24 17:57:02 2021
    This is a multi-part message in MIME format.
    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?


    -----BEGIN PGP PUBLIC KEY BLOCK-----

    mQGNBF64/IEBDACVrdj4Yfr7PC/t7tBofnMWWDoWiRxl+Oo64YjsamZGiy0hJHfP ZhI/pnOgqhy6pzsF/8c9Dx9A9SSAJOvC96wMTHgdh4GbffekCwoIXcKZeg9bjXjV Nth5CYOSBTQ9C/pl/j0CwjBQ9mdyK7FoHMlBEmQ4ButtBJgPNjyruiFkBt2r/99u w+hZEt+tO3D69v2MBMVF8pjZWzDDoIsbCUQGtaDD4uAIMqdDl28yw5FeYFg7PKLJ DXft8pNm/4bWv7BizTEVwSkcpPMR/6v/gXUhUsqCoqaWT9oSALmO5l9JfuNk2mpP bjue5joPlpOzaH+ZC0et/eynzyTxOpIAL97g1SVQLqqKRMu3atFda53ZyMNAcH3G R1gV5kX1rM3Ajyw1d7hp1rAYINdB/O/Y8VkNn0j6NZmEi8E1AwK3hu4ZJPIr9FQF bsWmAtjIgO1VXHxvxB7nYF5o7M350hW9SZlkbDf9NWBUHJlc5j4WVEYCjw1C3y8h OwFl1RfDFETqmdUAEQEAAbQrSm9oYW5uIEJlcmV0dGEgPGJlcmV0dGFAbnVuLXlh LWJpem5lc3MuY29tPokB1AQTAQgAPhYhBJx2orrQOL31I0cnEBM/4/Zk8Q8TBQJe uP0PAhsDBQkB4TOABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEBM/4/Zk8Q8T 0KYL/jL1DoQWCMil5EPlLSDG3iByV711VChSpWGbE4m2KrMjMdG0gQBNpg3IChKi tP5/5YdxHGKGjuDxvF/laTq/5KXosNmfdaJr9pmztOWT7tvmlwM+zUR782EQJeeU rGfv6TwYng7TUEaBH86Rg8m6fMKNqSt9MLly+p48Lv8TNj1RofvMv5Ng5xJW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FWQ6f8HxZQt0EzhgRaudGE MHNACuKbxWFpvNAM95LNpLDjRE+DJYGnsDOCRRC4fFRTG0+vqIqgniQzHmn8ddr6 5NazPg07TJzqLjsNBcTCGvRivoRDRP75PnQS8VppnyWubbXJjffmuIG2iqHnY5as ibsSo+TJ+7UEhbNx+uQBKO5KXvG/u9eWgyJz/Uf47zUbG9v9vocbOSbylPHjC3uO ONw91nUHLmGzi3ZmeyPeCu6pyjz/dzUcqYS3iw1/q+UWyS+SOIaz9sAMd1q8QQwW CKubXtlM6DKdnxxNVV4NkwFIeOF6d1pFiIgojqbsNnkPVaFQDc+u9UkkpevBymwr a0HThxeNkYA6MDWSbxJjPvyy1OO2yERbo9RG2jzOx85j29o=
    =d5t3
    -----END PGP PUBLIC KEY BLOCK-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Aragorn@21:1/5 to All on Thu Feb 25 03:32:18 2021
    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 =

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)