Re: Stopping a Service with cgi
- From: nishanth_ev@xxxxxxxxx (Nishanth Ev)
- Date: Thu, 16 Feb 2006 23:24:08 -0800 (PST)
Hello,
I have found the right thing for starting the service
using cgi.
There is a software called super
ftp://rpmfind.net/linux/contrib/libc6/i386/super-3.12.1-1.i386.rpm
Install this and configure the same.
Put relevent entries in /etc/super.tab
Your script will run with full root privileges.
Have a great day.
Regards
Nishanth
--- Tom Phoenix <tom@xxxxxxxxxxxxxx> wrote:
On 2/15/06, Mohammed Shameer <shameer@xxxxxxxxxxx>
wrote:
Can there be a setuid perl script which whenexecuted, runs with the
privileges of owner of the fileprivileges to run.
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
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
--
To unsubscribe, e-mail:
beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail:
beginners-help@xxxxxxxx
<http://learn.perl.org/>
<http://learn.perl.org/first-response>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
.
- References:
- Re: Stopping a Service with cgi
- From: Tom Phoenix
- Re: Stopping a Service with cgi
- Prev by Date: purpose of /? at the end of a link
- Next by Date: Re: purpose of /? at the end of a link
- Previous by thread: Re: Stopping a Service with cgi
- Next by thread: Strange "Can't locate Module.pm in @INC" error after chaning from 'use lib' to PERL5LIB
- Index(es):
Relevant Pages
|
|