Results 1 to 3 of 3

Thread: NIS Caveat: yppasswd: yppasswdd not running on NIS master host ("localhost.localdomai

  1. #1
    Join Date
    Jan 2007
    Beans
    32

    NIS Caveat: yppasswd: yppasswdd not running on NIS master host ("localhost.localdomai

    I was seeking for a solution to the problem why I got constantly:

    Code:
    yppasswd: yppasswdd not running on NIS master host ("localhost.localdomain")
    on my NIS (yp) clients.

    All HOWTOs I could find so far, also in this forum,didn't lead to a solution. I followed everything given already in the HOWTOs to no avail.

    Now I finally found the solution.
    For some reason I don't know, ubuntu writes during installation
    a line into /etc/hosts like

    Code:
    #
    #
    127.0.0.1 localhost mybox mybox.mydomain.com
    #
    (where mybox is the actual hostname that the computer has been given in DNS of mydomain.com).

    This leads to confusion.
    Changing the above to the more meaningful lines:
    Code:
    #
    127.0.0.1 localhost
    192.168.2.1 mybox mybox.mydomain.com
    #
    has immediately solved my problem after doing a

    Code:
    /usr/lib/ypinit -m
    
    /etc/init.d/nis restart
    (the latter on both, the server and the client)

  2. #2
    Join Date
    Jan 2008
    Location
    Belem, Brazil
    Beans
    197
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: NIS Caveat: yppasswd: yppasswdd not running on NIS master host ("localhost.locald

    Very nice! Two things:

    your last two commands should be
    Code:
    sudo /usr/lib/yp/ypinit -m
    
    sudo /etc/init.d/nis restart
    I added the "sudo", but you were missing the /yp/ directory

    Second, a question:
    Any idea how to pass a forced password change on to NIS clients?

    if I invoke
    Code:
    chage -d 0 username
    It does not ask the user to change the password on login to a client, but it does request it if try to log in on a server. I have tried rebuilding the maps and everything after invoke the command. Nothing works so far.

    The user, once logged in, is able to change a password via "yppasswd" so I know the daemon is running correctly.

  3. #3
    Join Date
    Apr 2007
    Location
    Old Mission, MI.
    Beans
    32
    Distro
    Ubuntu 5.10

    Re: NIS Caveat: yppasswd: yppasswdd not running on NIS master host ("localhost.locald

    Yes.

    Apparently,

    make -C /var/yp

    will rebuild the password list, and force any changes you made at the server level to apply to clients.

    But I still can't find a way to let my users change their own passwords, and can't even find yppasswd anywhere...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •