How do you handle while(1) fork(); ?

Peter da Silva peter at ficc.ferranti.com
Sat Jul 14 04:30:17 AEST 1990


In article <1655 at yenta.alb.nm.us> dt at yenta.alb.nm.us (David B. Thomas) writes:
> preventing the administrator's shell from forking 'su'.  And you can't
> 'exec' su, since then su would still fail to fork 'kill', and then you're
> logged out!

exec su -c 'exec kill -9 -1'

So the user just has to put something in their .cshrc to force the shell
to exit if they can't fork.

	set a=`echo hi`
	if (a != hi) exit
-- 
Peter da Silva.   `-_-'
+1 713 274 5180.
<peter at ficc.ferranti.com>



More information about the Comp.unix.questions mailing list