tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* set userid scripts
@ 1996-01-25 20:44 Chantelle Keller
  0 siblings, 0 replies; only message in thread
From: Chantelle Keller @ 1996-01-25 20:44 UTC (permalink / raw)
  To: tru64-unix-managers

Hi everyone -

I know I am probably missing something obvious here, but...

I am trying to run a perl script under DU 3.2 as setuid root, so that it can 
read data from a protected file.  Permissions on the data file are as follows:
   -rw-------   1 root     webadmin     111 Jan 25 11:14 test.dat

To make the script setuid, I did: chmod u+s test.pl (I also tried chmod 4755).  
The listing on the script looks as follows:
   -rwsr-xr-x   1 root     webadmin    1041 Jan 25 16:08 test.pl

Now, as a regular user, I run test.pl, but I get the message that I cannot 
open the file!  My script is, at this point, even printing out the real & 
effective user id's, and the effective user id is definitely not being set to 
root.  If I set permissions on the data file wide open, the script works fine.

One thing I noticed, which may or may not have any significance, is that every 
time I edit the script, the setuid bit gets wiped out and I have to reset it.

Can anyone see what I might be doing wrong here?

TIA,
Chantelle Keller
Systems Programmer, Ithaca College
ckeller@ithaca.edu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-01-25 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-25 20:44 set userid scripts Chantelle Keller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox