Quote:
Originally Posted by falko
|
I need help with your tutorial and IspConfig 2 buddy!
I see where you put this:
Code:
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?
Code:
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:
make_chroot_jail.sh 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:
make_chroot_jail.sh falko /bin/bash /home
Could I do something like:
make_chroot_jail.sh 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!