Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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......
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...
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...
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.