LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-16-2005, 12:21 PM   #1
ankur_linuxfan
LQ Newbie
 
Registered: Nov 2004
Posts: 27

Rep: Reputation: 15
How to get a bash console on a home page???


Hi,
Does anyone know of some html or php script which can allow a user to get a bash console.....I want to host a webpage which can take username and password and if the user successfully authenticates gives the user the bash console in his home directory.....is this possible to do in a html page......

Any help would be appreciated....

thanks.....
 
Old 07-16-2005, 12:49 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i'm sure it's possible (by using scripts on the server)... i remember a couple years ago i used webmin and IIRC one of the modules provided a web-based shell... if i were you i'd probably download the webmin tarball and check-out the ssh/telnet module...


Last edited by win32sux; 07-16-2005 at 12:55 PM.
 
Old 07-16-2005, 01:44 PM   #3
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
There always used to be a few java applets about that did this, if you search you may find one
 
Old 07-17-2005, 03:46 AM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Search google for ssh java applet or telnel java applet. (You will need ssh/telnet to make these applets work.)
 
Old 07-17-2005, 02:18 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
does anyone know how to do this on the server side without having to use java (etc) on the client side??

i'm not a coder, but it would seem to me this could be done using PHP, Perl, or Python on the server in such a manner that the client wouldn't need anything more than a HTTPS browser (without the need for a java plugin, etc.) to input shell commands and view output...

i got the impression the OP might be looking for a server-side solution:
Quote:
Originally posted by ankur_linuxfan
is this possible to do in a html page...
 
Old 07-17-2005, 03:48 PM   #6
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
This generally sounds like a bad idea, hackers dream, security nightmare, etc...
But if you must do it without java the only thing left is a server side cgi.
The browser would receive a html form with a single edit box to type a command.
You would enter a single command in the edit box and press the submit button.
The form would be resent to the browser with the output of the previous
command displayed above the edit box. I don't like this idea.
 
Old 07-17-2005, 05:43 PM   #7
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
This is awfull for security. You are giving a hacker what he would otherwise have to hack your system to get: unrestricted shell access.

In addition, it is not very functionnal for the user: you can only access the computer as the apache user, you can't run interactive commands (and that includes su), the user can't access his account.
 
  


Reply



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
Where is Yoper's Home page? trobins2005 Yoper 8 08-05-2005 08:21 AM
lost start page (home page?) multiplaone Linux - Newbie 1 05-29-2005 06:10 PM
Konqueror and Home Page? Dmacnumberfour Linux - Software 2 07-06-2004 09:08 PM
LQ home page layout Bruce Hill LQ Suggestions & Feedback 0 01-07-2004 07:11 PM
print a man page in console?? mipia Slackware 2 08-25-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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