LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Script Help (https://www.linuxquestions.org/questions/linux-general-1/script-help-448388/)

blackfish 05-25-2006 06:59 AM

Script Help
 
Hi

I want to be able to write a script so that when i press a button in a webpage it will run the script.

I want a script that will run commands as the root user on the linux system

I also want to be able to add things to pages such as smb.conf and squid.conf so that i could block ip addresses or webpages etc etc etc

Any help would be appreciated

Thanks

Blackfish ;)

P.S. I have a copy of dreamweaver to design the webpage

acid_kewpie 05-25-2006 07:17 AM

you need to write a lot better posts if you want to get the right answers. where do you want this script to run? on the client or the server? Iassume the server, but the way you write it it's unclear. not sure where being able to add thigns fits into any of this, and dreamweaver is not exactly relevant here...

are you sure you don't just want to use webmin / cPanel or something? i can't imagine for a second that you're heading in a direction that's remotely safe or secure.

blackfish 05-25-2006 10:21 AM

Sorry

I want to have a script on the server that can be executed when you press a button on the webpage. I then want the webpage to run the script on the server so it carries out actions like restarts samba services, adds line into the squid.conf

I do not wish to use webmin because it is to complicated for the user to use! i will be using security on the apache server

also the server is an internal file server and it runs squid but is forwarded to a second cache server within the setup

ethics 05-25-2006 11:23 AM

Use .PHP? you can call scripts from that


All times are GMT -5. The time now is 11:11 PM.