Find the answer to your Linux question:
Results 1 to 2 of 2
Hello. I am interested in allowing people to ssh into my box in order to interact with a perl script I've written (to solve suduku puzzles), and I'm wondering what ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    4

    Giving users a perl script as remote shell


    Hello. I am interested in allowing people to ssh into my box in order to interact with a perl script I've written (to solve suduku puzzles), and I'm wondering what the security risks of an arrangement like this might be. I don't want these users to have a standard bash shell or any interaction with the computer beyond the perl script.

    I tested this out a while back with specifying the script as the user's shell in /etc/passwd just to see if that was possible, but I really have no idea about the security issues of an arrangement like this.

    Thanks for any help,
    jb

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Well I guess you'll have to make sure your input is thoroughly checked, otherwise theoretically someone could use perl to exec("/bin/bash"); or something similar. Biggest security risk with things like this is input checking.

Posting Permissions

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