1 |
In data domenica 22 agosto 2010 10:36:36, Tamer Higazi ha scritto: |
2 |
: > Hi people! |
3 |
> For a project I need to create ssh accounts (based on shared keys) who |
4 |
> would be loged in a specific directory. They should only be able to |
5 |
> login in the desired directory, but not be able for outside browsing. |
6 |
> |
7 |
> |
8 |
> for example: |
9 |
> |
10 |
> /work/ |
11 |
> |
12 |
> but not / or any other scope. |
13 |
> |
14 |
> How would you guys accomplish that?! |
15 |
Hi Tamer, |
16 |
simply set the default shell of the desired account to: /bin/bash -r. |
17 |
In this mode the bash will start in restricted mode. You can get further |
18 |
information about that in the man page of bash (section: RESTRICTED SHELL). |
19 |
|
20 |
Bye |
21 |
Giampiero |