[SunHELP] Sticky bit problem
Elly Wijaya
sunhelp at sunhelp.org
Mon Sep 17 00:44:50 CDT 2001
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C13F01.31CFBE60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I created the following script:
ps -ef | grep $$
sleep 60
Let say the script is own by user1. Then I issued +x script and +s =
script.
On another session I login as user2. Then execute the above script. I =
noticed that the result of ps -ef | grep $$ show that user2 execute ps =
-ef command and not user1. Also if I issued ps -ef | grep sleep, the =
sleep command is executed by user2. What did I do wrong?
Thanks,
Elly
------=_NextPart_000_0008_01C13F01.31CFBE60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3211.1700" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I created the following =
script:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ps -ef | grep $$</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>sleep 60</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Let say the script is own by =
user1. Then I=20
issued +x script and +s script.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>On another session I login as =
user2. Then=20
execute the above script. I noticed that the result of ps -ef | =
grep $$=20
show that user2 execute ps -ef command and not user1. Also =
if I=20
issued ps -ef | grep sleep, the sleep command is executed by =
user2. =20
What did I do wrong?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Elly</FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01C13F01.31CFBE60--
More information about the SunHELP
mailing list