Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Tru64 V5.1 with NIS and Enhanced Security
@ 2001-03-09  6:45 Kevin May
  2001-03-09 15:16 ` Jack Patteeuw
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin May @ 2001-03-09  6:45 UTC (permalink / raw)


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

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

Any insights would be greatly appreciated, Thanks.

--
Kevin May
kevin.may@sterling-fsg.com
Logicon Sterling Federal




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tru64 V5.1 with NIS and Enhanced Security
  2001-03-09 15:16 ` Jack Patteeuw
@ 2001-03-09 15:14   ` Kevin May
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin May @ 2001-03-09 15:14 UTC (permalink / raw)



"Jack Patteeuw" <jjpatteeuw@peoplepc.com> 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 <defunct>
>
> New child processes seem to be created, but they always wind up
> <defunct>
>
> > 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tru64 V5.1 with NIS and Enhanced Security
  2001-03-09  6:45 Tru64 V5.1 with NIS and Enhanced Security Kevin May
@ 2001-03-09 15:16 ` Jack Patteeuw
  2001-03-09 15:14   ` Kevin May
  0 siblings, 1 reply; 3+ messages in thread
From: Jack Patteeuw @ 2001-03-09 15:16 UTC (permalink / raw)


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.

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

New child processes seem to be created, but they always wind up
<defunct>

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

> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-03-09 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-09  6:45 Tru64 V5.1 with NIS and Enhanced Security Kevin May
2001-03-09 15:16 ` Jack Patteeuw
2001-03-09 15:14   ` Kevin May

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox