Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I hope this is the right forum for this, and excuse the naive question.

I would like to provide an "guest" login to a (non-dedicated) linux server and run just one console application. The user cannot do anything more than use this application. A scenario could be:

 ssh dervinATsomehost.com (no pasword)

and the just automatically execute the shell app, say

  Welcome to Dervin's shell.
  Dervin$

when the user says exit, the whole connection would drop, not just the application.

This seems relatively simple, but I wouldn't know where to start.

Thanks.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Just set the user's shell to the application by changing "/bin/sh" (or "/bin/bash") in the /etc/passwd file to whatever program you'd like them to run. Be aware that many programs will allow the user to start a shell, though.

share|improve this answer

Depending on what you'd like them to do; you can also install something like rssh (http://www.pizzashack.org/rssh/).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.