Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2003 21:11:40 -0700 (PDT)
From:      Jin Guojun (DSD staff) <jin@george.lbl.gov>
To:        freebsd-questions@FreeBSD.ORG
Subject:   pw_mkdb() failed in rpc.yppasswdd
Message-ID:  <200308040411.h744BePX067732@portnoy.lbl.gov>

next in thread | raw e-mail | index | archive | help
When using yppasswd to change a user password, rcp.yppasswdd failed in two ways:

change passwd from root on NIS server:
------- server syslog messages ---------
passwd: in pam_sm_chauthtok(): yppasswd_local(): failed to connect to rpc.yppasswdd: 
nis.server.$DOMAIN: RPC: Program not registered

change passwd from a user on either NIS server or a remote machine:
------- server syslog messages ---------
 rpc.yppasswdd[349]: pw_mkdb() failed
 passwd: in pam_sm_chauthtok(): yppasswd_remote(): NIS password update failed

========= end of messages =========

This is on 5.1 release. What would be the problem?

pw_mkdb() in lib/libutil/pw_util.c shows that
this may be failed at execl(... , "pwd_mkdb" ...)

pw_mkdb(const char *user)
{
   switch (pid= fork()) {
    ...
    case 0 :
        execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p",
                            "-d", passwd_dir, "-u", user, tempname, NULL);
        _exit(1);
    ...
    }

        if (waitpid(pid, &pstat, 0) == -1)
                return (-1);
        if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0)
                return (0);
        errno = 0;
        return (-1);
}

-- 
/-------------- Jin Guojun ------------ v -- Internet: j_guojun@lbl.gov ---\
|       Imaging & Distributed Computing | Usenet: ucbvax!j_guojun@lbl.gov  |
|       Lawrence Berkeley Laboratory    | Bitnet:       --                 |
|       50B-2239, Berkeley, CA 94720    -  jin%george.lbl.gov@Csa3.LBL.Gov |
\--Ph#:(510) 486-7531 + Fax: 486-6363 --^--http://www-itg.lbl.gov/ITG.html-/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308040411.h744BePX067732>