Apparently, though unproven, at 10:36 on Sunday 22 August 2010, Tamer Higazi 
did opine thusly:

>  Hi people!
> For a project I need to create ssh accounts (based on shared keys) who
> would be loged in a specific directory. They should only be able to
> login in the desired directory, but not be able for outside browsing.
> 
> 
> for example:
> 
> /work/
> 
> but not / or any other scope.
> 
> How would you guys accomplish that?!


Make that user's shell rbash.

In rbash the user cannot cd. There's a bunch of other stuff they also cannot 
do. Check man bash near the end to make sure it satisfies your needs.

-- 
alan dot mckinnon at gmail dot com

Reply via email to