up vote 1 down vote favorite
1
share [g+] share [fb]

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.

link|improve this question
feedback

2 Answers

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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