[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Remote Console Execution

Posted on 2004-11-09
Medium Priority
Last Modified: 2013-12-27

I am doing a small test app. It executes a shell command remotely through a webservice. I want to know which commands will raise interative sessions and how do i kill them.

Question by:kalyankondurie
  • 2
LVL 51

Accepted Solution

ahoffmann earned 250 total points
ID: 12539393
what do you mean by "interative sessions"?

Author Comment

ID: 12541232
interactive sessions in the sense those commands which ask for further input such as "time" command in MS-DOS and "rm -i" in unix. Further I want to restrict commands which alter/write to the files on the disk such as rename, move, format, etc.

LVL 51

Expert Comment

ID: 12542103
such interactive commands bail out with an error 'cause they do not have a valid tty, usually
If you want to restrict anything you have to improve your web service.
Hope you're aware that you have to sanatice *any* input there before processing (for example in a shell).

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question