1

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.

2 Answers2

3

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.

Evan Anderson
  • 141,881
  • 20
  • 196
  • 331
0

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

dr.pooter
  • 399
  • 5
  • 10