Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: Disabled
Post Webcontrolpanel with access to console


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?

Old 09-29-2011, 07:04 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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, 01:09 AM   #3
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?


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

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

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

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