LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 09-29-2011, 04:59 PM   #1
Morten
LQ Newbie
 
Registered: May 2011
Posts: 5

Rep: Reputation: Disabled
Post Webcontrolpanel with access to console


Hi,

How can I create a website which can perform console commands in Debian 6.0?

I would like to develop a controlpanel for a server i'm running as an user called 'ServerAdmin' with the screen command.

Issuing a similar command to this one in the debian console, will make the server ban the specified player:

screen -p 0 -S ServerAdmin -X eval 'stuff \"ban playername\"\015'"

How can I issue such a command by running a php-application without exposing my computer/server?

Regards
 
Old 09-29-2011, 06:04 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,716

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
With great difficulty ... you might want to start by reading the OWASP guides. I'm building a webapp from scratch in python and the OWASP guides have been invaluable, even though I've done some of the things you're not supposed to like creating your own session management etc..
 
Old 09-30-2011, 12:09 AM   #3
Morten
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for that information, I'll dig into that

However I'm going to make my system in PHP and was counting on using a function like exec(). But when this runs as apache and not the ServerAdmin user, I don't have enough permissions. How can I solve this?

Lowering the required permissions e.g. using chmod 777 would be a security risk, but should I just grant apache extra permissions?
 
  


Reply

Tags
apache, console, php, server


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access console after boot 13.37 grond Slackware - Installation 2 07-05-2011 03:43 PM
how to access graphical console yogesh619 Linux - Desktop 1 08-06-2008 02:22 PM
What is console access... blackzone Linux - Newbie 1 07-10-2006 09:45 PM
more access?///console commands chiatello Linux - General 6 07-13-2003 02:46 PM
How can I access the diskette from the console? JC404 Linux - Newbie 2 12-03-2002 09:01 AM


All times are GMT -5. The time now is 07:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration