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

Thanks to everyone who responded to my question about why my set uid perl 
script would not run.  It turns out that, due to security risks, DU does not 
allow scripts to be setuid, only compiled programs.  (Yes, I know setuid root 
is a Bad Thing to do, but in this case I really need to.)  Anyway, it turns 
out there are 2 workarounds for this:

1) Write a small C wrapper program, which will run the perl script.  Make the 
compiled program setuid, and then the script will be run by the program as 
that uid.

2) Compile perl with an option which allows setuid/gid emulation.  I had not 
done this when I initially installed perl, but when I enabled it and 
reinstalled, it worked!

Thanks again,
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-26 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-26 13:13 SUMMARY: set uid 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