[CentOS] Chroot in CentOS 5.* ?

Fri Oct 7 12:59:47 UTC 2011
Brian Mathis <brian.mathis+centos at betteradmin.com>

2011/10/7 Jorge Fábregas <jorge.fabregas at gmail.com>:
> On 10/07/2011 05:42 AM, przemolicc at poczta.fm wrote:
>> How about chrooted sftp in centos 5.* ?
>> If I cannot - do I have to use centos 6.* ?
>
> The stock SSH package in the CentOS 5 series doesn't have the chroot
> functionality.  The one in CentOS 6 does.
>
> HTH,
> Jorge

The stock sshd actually does support chroot, but it's an
all-or-nothing type of thing.  You cannot apply the chroot only to
specific groups, so even 'root' is chrooted.

There are 3rd party OpenSSH 5.x packages available that work on CentOS
5 and give you the ability to set the chroot by groups.


-☙ Brian Mathis ❧-