The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: sticky bit??
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-04-2002
hedrict hedrict is offline
Registered User
 

Join Date: Jun 2001
Posts: 35
Question 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
Forum Sponsor