Re: Stopping a Service with cgi
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Wed, 15 Feb 2006 13:52:46 -0800
On 2/15/06, Mohammed Shameer <shameer@xxxxxxxxxxx> wrote:
Can there be a setuid perl script which when executed, runs with the
privileges of owner of the file
ie:-
I am root
chown root:root /bin/myscript.pl
chmod +s /bin/myscript.pl
Now I am a local user
/bin/myscript.pl
and myscript.pl contains some code which need root privileges to run.
Yes; this can be done with perl, depending upon OS and configuration.
Some systems don't support secure set-id scripts, but you can use a
"wrapper" to make your program run set-id. See the perlsec
documentation for the details, and be careful about security issues.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
.
- Follow-Ups:
- Re: Stopping a Service with cgi
- From: Nishanth Ev
- Re: Stopping a Service with cgi
- References:
- Re: Stopping a Service with cgi
- From: Nishanth Ev
- Re: Stopping a Service with cgi
- From: Tom Phoenix
- Re: Stopping a Service with cgi
- From: Jay Savage
- Re: Stopping a Service with cgi
- From: Mohammed Shameer
- Re: Stopping a Service with cgi
- Prev by Date: Re: Stopping a Service with cgi
- Next by Date: hash array
- Previous by thread: Re: Stopping a Service with cgi
- Next by thread: Re: Stopping a Service with cgi
- Index(es):
Relevant Pages
|
|