LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-25-2006, 06:59 AM   #1
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Rep: Reputation: 15
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
 
Old 05-25-2006, 07:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-25-2006, 10:21 AM   #3
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Original Poster
Rep: Reputation: 15
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
 
Old 05-25-2006, 11:23 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Use .PHP? you can call scripts from that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 04:19 AM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration