Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: can't run as root with netbsd-5



On Wed, 4 Mar 2009 21:14:05 -0600
Eric Haszlakiewicz <erh%nimenees.com@localhost> wrote:

>   8886      1 su       CALL  setuid(0)
>   8886      1 su       RET   setuid 0
>   8886      1 su       CALL  execve(0xbfbfe234,0xbfbfe7a4,0xbfbfe7b0)
>   8886      1 su       RET   execve -1 errno 35 Resource temporarily 
> unavailable
> 
> That readlink failure looks a bit odd.  Even more odd is that it it 
> attempting to exec the shell for erh (tcsh) rather than for root.
> (it says: "su: /usr/pkg/bin/tcsh: Resource temporarily unavailable", am
> I interpreting error that incorrectly?)
>
> 
> I notice that there are a lot of root "processes" (actually, linux
> emulated java threads) running: 179 at last count.
> 
> Sure enough, if I kill those I can login/su to root normally.  So it's
> definitely some problem with process limits.  The soft/hard limits appear
> to be 160/1044.  Are those supposed to apply to root owned processes?

I think
http://cvsweb.be.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/kern/kern_exec.c.diff?r1=1.268;r2=1.269
is the cause of this.

dieter

> 
> eric
> 


Home | Main Index | Thread Index | Old Index