Hi,
Last time I had to do this, I simply wrote a simple command in C, that
would wait for a character and then exit. It doesn't have to be too
complicated. You could easily print a simple prompt (to alert any user
who looks at a terminal) and then wait. For security just don't use
getchar() or any function that is susceptible to a buffer overflow
attack and you should be fine. Using a script for this type of usage
is not generally regarded as secure.
Cheers,
John
On 22/05/2009, at 11:56 AM, chris bayley wrote:
Hi bods,
I wish to create a guest account on a machine where that account
exists purely for the ability to connect via SSH and create tunnels.
There is no requirement for an interactive shell on the host
machine. What then I can I specify as the guest accounts shell ???
I have noted various 'restricted shells' such as rbash and rssh but
they still do more than I need. Really all I want is MOTD and logout.
What do you suggest ?
Cheers,
Chris
John Collis - [email protected]
Technology Development
IndraNet Technologies Ltd.
http://www.indranet-technologies.com/