--As of Friday, June 11, 2004 1:10 PM -0700, Tham, Philip is alleged to have said:

I am trying to execute a perl script from html. However this is to be
executed by a certain user and the script also updates files in the
system. Is there a was I can do a chuser and set the s-bit.

--As for the rest, it is mine.

On yourself, or on other files?

On other files you can use the 'chown' and 'chmod' functions, using a command-line like syntax. (Check perlmod for exact syntax.) Of course, you have to have permission to do that.

I'd worry about being able to set set-uid files over a browser interface though, or even update them. That's just playing with fire...

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to