Re: Stopping a Service with cgi




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 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

--
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
.



Relevant Pages

  • Re: how to change roots shell
    ... Im going to see if I can walk a user at the site through single user mode. ... su to root or even login as root. ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (freebsd-questions)
  • Re: arts/ALSA problem after unstable upgrade (solved)
    ... ...as root; ... Do You Yahoo!? ... Mail has the best spam protection around ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Runlevel3 services
    ... when i su to root... ... press serv and tab and all i get is servertool and ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (Fedora)
  • Re: Newbie cannot start graphical desktop
    ... > You are trying to use X programs as root? ... with Knoppix and my monitor now perfectly configured. ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (Debian-User)
  • Debian Woody login problem
    ... wipe it out and install Sarge as my main OS, ... "can't authenticate" warning. ... when I'm logged into the second drive as root ... New and Improved Yahoo! ...
    (Debian-User)