Gentoo Archives: gentoo-user

From: Giampiero Gabbiani <Giampiero@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] creating ssh account without directory browsing
Date: Sun, 22 Aug 2010 12:32:13
Message-Id: 201008221431.20453.Giampiero@gabbiani.org
In Reply to: [gentoo-user] creating ssh account without directory browsing by Tamer Higazi
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

Replies

Subject Author
Re: [gentoo-user] creating ssh account without directory browsing Mick <michaelkintzios@×××××.com>