[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] using Raq3 shell tools



Richard Kurth schrieb:

> run this script from the browser. Is there a way to run another
> script to store the data and then use cron to run a program to see if
> there are any sites to add and if there are pass the information to the
> addvsite program. Has any body done this? Maybe a little code to get me
> started in the wright direction

maybe it could be done using the browser; as perl allows you to run
external commands in several ways.
the shell-tools have to run as root; so that`s somewhat dangerous; you
should definitely strictly check the input from the form the user fills
out.

check a linux book for : setuid (shell-tools)

perl documentation : process management (backticks, system, exec)

for security / system stability reasons this is NO newbie job.

you might take a look at webmin that allows to add users (i think) to
see how they`re doing it. the webmin server (a small perl webserver)
runs as root to do the job.
reading code written by others is the best way to learn.

-- 

H. P.  Stroebel, Germany

CGI-FAQ for Raq-Newbies :
http://users.iol.it/hpstr/

A problem to some is a 'feature' to others.