problems with setuid (?)

Nagesh Pabbisetty Pabbisetty.henr at xerox.com
Sat Jan 28 01:01:26 AEST 1989


Hello Wizards,

Here is a simple one for you.

I am having a problem (explained below) with killing processes using a
c-shell script.

I need a way that ANY user can kill xnsstart and xnshelper by running the
xnskill shellscript. xnsstart and xnshelper are created when I run xnsinit
as "root". 


Could anyone tell me why I am having this problem? How can I remedy this?

Thanks for all the help!

- nagesh.


-----------------------------------------------------------------------------
problem:
-------

When I login as an unprevileged/normal user and run "/usr/new/xns/xnskill",
I get the following output:

2347: Not owner




-----------------------------------------------------------------------------
script file name: xnskill
-----------------
cat xnskill:
-----------

# c-shell script file to kill xnsstart and xnshelper
kill -9 `ps -ax | fgrep xnsstart | fgrep -v fgrep | cut -c1-5`
kill -9 `ps -ax | fgrep xnshelper | fgrep -v fgrep | cut -c1-5`

-----------------------------------------------------------------------------
pertinent details:
------------------

ps -ax :
-------
  PID TT STAT  TIME COMMAND
	.
	.
	.
 2347 p4 I     0:00 /etc/xnsstart le0
 2348 p4 I     0:00 /etc/xnshelper default domain Henr801c default
organization
	.
	.
	.
	

ps -alx  :
--------
      F UID   PID  PPID CP PRI NI  SZ  RSS WCHAN    STAT TT  TIME COMMAND

	.
	.
	.
   8201   0  2347     1  0  15  0  40  120 pause    I    p4  0:00
/etc/xnsstart
   8001   0  2348     1  0   1  0  48  320 select   I    p4  0:00
/etc/xnshelper
	.
	.
	.


ls -l /usr/new/xns:
------------------
-rwsr-sr-x  1 root           44 Jan 25 11:40 xnsinit*
-rwsr-sr-x  1 root          173 Jan 26 13:15 xnskill*


-----------------------------------------------------------------------------

-----------------------------------------------------------------------------



More information about the Comp.unix.wizards mailing list