1 |
Apparently, though unproven, at 10:36 on Sunday 22 August 2010, Tamer Higazi |
2 |
did opine thusly: |
3 |
|
4 |
> Hi people! |
5 |
> For a project I need to create ssh accounts (based on shared keys) who |
6 |
> would be loged in a specific directory. They should only be able to |
7 |
> login in the desired directory, but not be able for outside browsing. |
8 |
> |
9 |
> |
10 |
> for example: |
11 |
> |
12 |
> /work/ |
13 |
> |
14 |
> but not / or any other scope. |
15 |
> |
16 |
> How would you guys accomplish that?! |
17 |
|
18 |
|
19 |
Make that user's shell rbash. |
20 |
|
21 |
In rbash the user cannot cd. There's a bunch of other stuff they also cannot |
22 |
do. Check man bash near the end to make sure it satisfies your needs. |
23 |
|
24 |
-- |
25 |
alan dot mckinnon at gmail dot com |