I'm looking forward for your guide.
Preface : OK, this is sloppy but works. I'll need everyone's input for refinement so email me results and
also I'll need to send you david.tar.gz.
This test performed on Linux RedHat 7.2 This proceedure is a prorotype. Sign in as root.
SSH2 - download and install SSH Secure Shell 3.2 non-commercial :
<invalid link removed>
tar -xvpf ssh-3.2.0.tar.gz
note : Observe that new folder has been created /etc/sshd2.
USER FOLDER - to be SSH2 chrooted : example will assume user "paul" in /home/paul. He's using a bash shell.
Place david.tar.gz in /home folder, tar -xzpf david.tar.gz. This example presumes that user "david" does NOT exist.
Now folder "/home/david" is created. Rename folder to be SSHD2 chrooted to it's name dot bak i.e."paul.bak".
Rename "/home/david" to "/home/name" i.e. "/home/paul".
Observe ownerships of new user directory are "david", so change the folder and internal "david" user/group to "paul",
that is, only the files/folders for renamed folder "paul" from "david" to "paul".
Edit "home/paul/etc/passwd" - replace "david:x:656:507:david bosshardt:/home/david:/bin/bash" with
pauls' /etc/passwd entry. Delete david's line in "/home/paul/etc/passwd", copy pauls line from "/etc/passwd" and
paste it in "/home/paul/etc/passwd".
Edit "home/paul/etc/group" - replace "david:x:507:" with
pauls' /etc/group entry. Delete david's line in "/home/paul/etc/group", copy pauls line from "/etc/group" and
paste it in "/home/paul/etc/group".
CONFIG SSHD2, KILL SSHD, START SSHD2, RUN WinSCP :
Edit /etc/sshd2/sshd2_config - Find line "ChRootUsers". Add paul as
If you have sshd running, kill it. Now, start SSHD2 by simply typing in sshd2. Remember, we're NOT running the
old sshd, we're going to run the new install sshd2.
Now, from my window xp machine, I run WinSCP :
email@example.com port 22
suppy pauls login name and password and I'm in. Pauls folder is chrooted and I appear to have full functionality