Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Running a shell script from browser automatically


    I have a linux application. The installer for this application is streamed from the server with a mime type of "application/x-sh".

    When the browser receives this streamed data, it displays a message asking the user to 1. select a program to open with and displayes a browse button or 2. save it to disk.

    I want to change this behavior, so that the user is presented with an option to open with "sh" automatically. The user should not be made to click the browse button and than select /bin/sh. It would be even better if the browser runs this automatically with the /bin/sh program.

    It can be configured from the browser (setting the behavior for .sh file types).

    But I do not have any control over the user's browser settings.

    Is there a way to enforce the desired behavior.

    I will appreciate any help/suggestions on it.


  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Not that I know of. Each user will have to change it in their browser on their own.

    Imagine if everyone's browser defaulted to running .sh files without prompting.. You would inevitably have someone abusing this and running malicious scripts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts