From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,88611498d6c8e882 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-03-09 07:14:24 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.ne.home.com.POSTED!not-for-mail From: "Kevin May" Newsgroups: comp.unix.tru64 References: <3AA8F3D2.A1054A40@peoplepc.com> Subject: Re: Tru64 V5.1 with NIS and Enhanced Security X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Fri, 09 Mar 2001 15:14:21 GMT NNTP-Posting-Host: 24.3.246.247 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.ne.home.com 984150861 24.3.246.247 (Fri, 09 Mar 2001 07:14:21 PST) NNTP-Posting-Date: Fri, 09 Mar 2001 07:14:21 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.unix.tru64:1833 "Jack Patteeuw" wrote in message news:3AA8F3D2.A1054A40@peoplepc.com... > Kevin May wrote: > > > > I have a Tru64 V5.1 system running as a NIS master with Enhanced > > Security configured, yppasswdd runs as a parent and child pair with > > the child holding a lock on the /var/yp/src/prpasswd file. > > What do you mean by a "lock" ? Be specific. > The lock seems to be a shared lock created by a fcntl(2) call. If I request an exclusive lock with fcntl(fd, F_SETLK, &flck), with the flck.l_type field set to F_WRLCK it fails. It is definitely owned by the child yppasswdd process. This request succeeds only after the protected password database has been updated. The same request always succeeds on our Tru64 V4.0F systems. > On my V4.0F system if have the following pair of processess > > USER PID PPID COMMAND > root 533 1 /usr/sbin/rpc.yppasswdd /var/yp/src/passwd > /var/yp/src/prpasswd -m passwd prpasswd > root 18133 533 > > New child processes seem to be created, but they always wind up > > > > The lock > > exists after the daemon has been started but is gone once the protected > > password database has been modified through edauth, dxaccounts or > > putespwnam(). > > Hmmm ... edauth does seem to make the defunct child "go away". But it > does come back. > I am not positive that there should be a child process running, as far as I know I'm not doing any to create it. The /sbin/init.d/nis script starts the rpc.yppasswdd daemon during a reboot. The command used to start it is: /usr/sbin/rpc.yppasswdd /var/yp/src/passwd /var/yp/src/prpasswd -m passwd prpasswd On our Tru64 V4.0F system this command starts just one process but on our Tr64 V5.1 system the exact same command starts two processes. I maybe wrong but I was assuming this difference was due to a change in the daemon. If it should not be running as a child/parent pair on Tru64 V5.1 then I quess my direction would be to find out why I have the child process running, instead of determining what should be the state of the child's lock on /var/yp/src/prpasswd. Thank's for your quick response! > > Does any one know if this is the correct behavior. > > Could it be a configuration error or a problem with the daemon? > > Is the lock supposed to persist? Is it supposed to be there in the > > first place? > > I reported this to Compaq many months ago; they could not reproduce it > and my systems seems to be running fine, with 100's of logins per day, > so .... > > > I couldn't reproduce this on a Tru64 V4.0F machine. The yppasswdd > > daemon is started as a single process with no lock on the > > /var/yp/src/prpasswd file. > > I'm running V4.0F. Again, what specifically do you mean by "a lock" ? > > Jack Patteeuw