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.
On 2/15/06, Mohammed Shameer <[EMAIL PROTECTED]> 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 m
Hi,
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.
O
On 2/15/06, Tom Phoenix <[EMAIL PROTECTED]> wrote:
> On 2/14/06, nishanth ev <[EMAIL PROTECTED]> wrote:
>
> > I want to start and stop a serviec using cgi script.
>
> Thanks for including your new code. It doesn't seem to change anything
> important, though. Have you tried any of the suggestions yo
On 2/14/06, nishanth ev <[EMAIL PROTECTED]> wrote:
> I want to start and stop a serviec using cgi script.
Thanks for including your new code. It doesn't seem to change anything
important, though. Have you tried any of the suggestions you've
already gotten? Did you use $< and $> to learn what user
Hello folks,
Thanks a lot for the reply.
I dont mean exactly httpd.
Any Service will do.
I want to start and stop a serviec using cgi script.
Say mysql service will do,
#!/usr/bin/perl
`/etc/rc.d/init.d/mysqld restart`;
print"Content-type:text/html\n\n";
print"RESTARTED";
nishanth ev am Dienstag, 14. Februar 2006 17.56:
> hello Friends,
>
> Have anyone tried stopping a service say httpd usng a
> cgi script ?
> I have set a setuid for the cgi script and the script
> is in the root cgi-bin directory namely
> /var/www/cgi-bin/ with ownership root and have the
> followi
On 2/14/06, nishanth ev <[EMAIL PROTECTED]> wrote:
> I have set a setuid for the cgi script
You webserver may not be running this program set-id, even if you use
the setuid bit, for security reasons. You can find out the user id
it's running under with the $< and $> variables. See perlvar.
> Hav