Re: SSH chroot and ForceCommand

2010-03-19 Thread Dan Harnett
On Fri, Mar 19, 2010 at 03:58:07PM +0100, Bambero wrote: > > Match User !admin > ChrootDirectory /var/www/users/%u > ForceCommand internal-sftp > X11Forwarding no > AllowTcpForwarding no Match User *,!admin ChrootDirectory /var/www/users/%u ForceCommand in

SSH chroot and ForceCommand

2010-03-19 Thread Bambero
I have a liitle problem. I need a sshd configuration to chroot (internal sftp) every user excluding admin (which should have a shell access). So i made: ChrootDirectory /var/www/users/%u ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no Match User admin ChrootDirectory none