Summary: ps hangs and yppasswd (nispasswd)

From: Jim Faust (jfaust@3dfx.com)
Date: Tue Dec 08 1998 - 14:48:58 CST


Original Message:

>I've got a Sparc 20 running Solaris 2.6. It's setup as a NIS master
system, and with
>the exception of the yppasswdd (nispasswdd) >function, was working fine.
In an
>attempt to figure out why I couldn't change passwords, I began looking at
the rc
>scripts to see how he assorted yp daemons were started. I came across a
setting
>in /etc/rc2.d/S71rpc that said to uncomment the line "EMULYP="-Y" if I
wanted
>rpc.nisd to emulate NIS. I figured it was worth a try, so I uncommented
this line and
>did a reboot.
>
>After the reboot, I attempted to run "ps" to see what type of yp processes
were
>running. Now, ps just hangs. I tried top, and it hangs also. I got back
into that
>same file and commented out the offending setting and did a reboot. No
change.
>I took a look at the Sun managers archives and found a summary relating to
a
>hanging ps process, but that was due to an oracle problem. I'm not running
oracle
>or sybase.

Outcome:

I took a look at /usr/lib/netsvc/yp/ypstart and noticed that it was looking
in my makefile
in /var/yp to determine the location of my hosts file (which was not in /etc
as is the
default). This was also confirmed by Guru Prasad who told me I needed a
variable
called "PWDIR", which pointed to my hosts location in my makefile. Once I
fixed this,
my password changes worked fine, as did my nis login ability which
disappeared about
the same time my ps problems started.

As far as my ps problem goes, Casper Dik, suggested that my uid to name
mapping was
messed up, which made sense except that /usr/bin/ps worked and /usr/ucb/ps
didn't,
which Casper didn't know because I only found out about it a couple minutes
prior to his
email. The man pages and sun archives led me to look in /tmp for ps_data,
which was
there, but comparing w/ other Solaris 2.6 systems, I noticed that a file
called ups_data
was conspicuously absent. I did a touch in /tmp on ups_data and changed
permissions
and ownership to match the working systems. The ps command still didn't
work, but I did
get output in the form of an error message, as opposed to a simple hang w/
no output
at all.

Out of desperation, I took a look at the sun public patches to see if I
could find anything
of relevance. After browsing an assortment of 2.6 patches, I downloaded the
2.6 patch
cluster and installed it. After the reboot, all versions of ps now work.

Thanks for the help,

Jim

Jim Faust
3Dfx Interactive
12357 Riata Trace Pkwy
Suite 140
Austin, TX 78727
(512) 336-6031



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:53 CDT