Hi Jean-Francois

Attach a little example, hope that helps

The user archivos only have access to /var/www/domains/home/
archivos/public_html

$ cat /etc/ssh/sshd_config
Port 22
Protocol 2
SyslogFacility AUTH
LogLevel INFO
PermitRootLogin no
Subsystem sftp  internal-sftp

Match group chrootusers
    ForceCommand internal-sftp
    ChrootDirectory /var/www/domains/home/%u


$ ls -lh
total 84
drwxr-xr-x  3 root  chrootusers   512B Feb 13 19:23 archivos

$ ls -lh archivos
total 4
drwxr-xr-x  3 archivos  chrootusers   512B Feb 18 14:24 public_html

See the permissions.

Bye

-- 
Beto
www.compumundohypermegared.org


2009/2/23 Jean-Francois <[email protected]>

> Hi All,
>
> As far as I understand, the sftp service is always running since it is
> the ssh daemon (maybe one can correct me if I'm wrong).
> Hence I need to chroot some users to specific directories.
> I prefer not to use vsftp at present time if this feature is available
> with sftp of OpenBSD.
>
> One can help me ?
>
> Thank you;
> JF
>
>


-- 
Beto
www.compumundohypermegared.org

Reply via email to