sticky bit??
I have a script that I want to be able to let user 'wcs1234' execute it, but when it runs, it will do so under the higher authority of 'cdunix'. It is my understanding that I accomplish this with a sticky bit. I have tried every variation of this but am unable to get this to work.
my script is as follows:
!bin/ksh
cd /opt/cmunix/teststage
ls -lt
#
whoami
print -n "enter file to copy....."
read file
echo $file " copied to stage directory.."
#
cp -p /opt/cmunix/teststage/$file /opt/cmunix/stage/
exit 0
my permissions are as follows:
-rwxrwsr-x 1 cdunix sterling 511 Feb 04 15:41 cptostage.sh
any help would be greatly appreciated....
Todd
|