View Single Post
Old 19th January 2011, 23:41
kextra1 kextra1 is offline
Senior Member
Join Date: Apr 2008
Posts: 121
Thanks: 12
Thanked 10 Times in 6 Posts
Default Help! IspConfig 2 chroot question

Originally Posted by falko View Post
You must set this up manually. This link might help:
I need help with your tutorial and IspConfig 2 buddy!

I see where you put this:

Match Group users
    ChrootDirectory /home
    AllowTCPForwarding no
    X11Forwarding no
    ForceCommand /usr/lib/openssh/sftp-server
For IspConfig 2 users and chroot jails should I use something like this below?

Match Group web1
    ChrootDirectory /var/www/web1
    AllowTCPForwarding no
    X11Forwarding no
    ForceCommand /usr/lib/openssh/sftp-server
Would that be right Falko? I thought I tried that and I got a Network Connection error in PuTTy. I did not do the:

"chmod 700 /var/www/web1"

to the home directory though.

Also the script you use in the tutorial for users chroot doesn't give directions on how to use the script with groups instead of usernames.

EXAMPLE: username [/path/to/chroot-shell [/path/to/chroot]]

Can we put the group for example: "web1" in place of the username?

Sorta like you showed with the /etc/ssh/sshd_config stanza using groups instead of individual users?

Will that work with this script?

Then simply instead of doing: falko /bin/bash /home

Could I do something like: web1 /bin/bash /var/www/web1

Would that work or must it be a username with the script?

Thanks, sorry for all the questions, just dont want to mess up my server

Any advice is appreciated! Thanks for your expertise again!

Last edited by kextra1; 19th January 2011 at 23:56.
Reply With Quote