Subject: Re: the number of running processes just keeps growing
To: None <netbsd-help@netbsd.org>
From: Henry Nelson <henry@irm.nara.kindai.ac.jp>
List: netbsd-help
Date: 07/28/2001 11:29:09
The original problem was that processes kept accumulating due to some
looping of a test in one of the subprocesses of /etc/security.  Thanks
to the help of Jeremy Reed and Manuel Bouyer I was able to pin down the
offending routine to "check_rootdotfiles".  I looked at /etc/security,
but I'm afraid it is out of my league.  In case it's relevant, the shell
for root is /bin/csh, and /root/.cshrc is the one installed by default
(NetBSD 1.4.2/sparc).  I cut out the "bad" portion of /etc/security and
ran it with the -x switch.  The last part of the output is appended to
this message.  Anyone have ideas on how to debug it further?

henry nelson


+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ awk {
                                if ($10 ~ /^\.$/) {
                                        print "\tThe root path includes .";
                                        next;
                                }
                             }
                             $1 ~ /^d....w/ \
                { print "\tRoot path directory " $10 " is group writeable." } \
                             $1 ~ /^d.......w/ \
                { print "\tRoot path directory " $10 " is other writeable." }
+ [ -f /root/.profile ]
+ egrep umask /root/.profile
+ umaskset=yes
+ egrep+ awk umask $2 % 100 < 20 \
                                { print "\tRoot umask is group writeable" } \
                             $2 % 10 < 2 \
                                { print /root/.profile "\tRoot umask is other wr
iteable" }

+ SAVE_PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ unset PATH
+ /bin/sh