This is an old revision of the document!
Gros brouillon, c'est un peu d'la daube.
Dans /etc/ssh/sshd_config
Pour un groupe :
Match Group ftpgroup ChrootDirectory /%h ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no
Sur le répertoire : https://askubuntu.com/questions/134425/how-can-i-chroot-sftp-only-ssh-users-into-their-homes
chown root /home/machin chmod go-w /home/machin mkdir /home/machin/ecriturable chown machin:sftponly /home/machin/ecriturable chmod ug+rwX /home/machin/ecrituable