Hi, How can i chroot users on opensuse10.2 ? I looked but theres only a how to for debian users Any ideas on how can i do this on opensuse? Thanks, Alex
The steps will be generally the same for opensuse too. As opensuse does not offer a ssh daemon that is able to chroot, you will have to compile one as described in the debian howto.
When i try to configure it comes up with an error Code: checking whether getpgrp requires zero arguments... yes configure: error: PAM headers not found server1:/tmp/openssh-4.2p1-chroot #
Please check if there is something like a PAM dev or devel package for SuSE and install it with yast.
I have installed it all now with no errors, however when ever i log in with an SSH user created with ISPConfig the SSH windows just closes I enabled it on ISPConfig to chroot users and enabled the site to have SSH though it just closes now, except for root
Hi, Maybe you should try to modify /root/ispconfig/script/shell/create_chroot_env.sh I have modified the script based on this post (http://www.howtoforge.com/forums/showthread.php?p=35575) The modified script works fine on my Ubuntu 6.06 server. Before that, all chrooted users couldn't login and always get error messages: /bin/bash no such file Of course, you must re-run the script for existed users: Just type: /root/ispconfig/script/shell/create_chroot_env.sh username CMIIW
Thanks, but the file /etc/terminfo doesnt exist on that script so i commeneted it out. I then created a new user in ISPConfig and tryed logging in however it still did the same, just closes as soon as i log in Any ideas?
Double check your password file. When I first was setting this up, I had the /./ in the wrong spot so it couldn't find anything correctly. Home dir should be something like /var/www/web1/./
Thanks, but it looks ok to me Here is the whole line Code: fphost5_test:x:10114:10005:Test:/var/www/web5/user/fphost5_test/./:/dev/null
Are you sure that fphost5_test user have shell access permission? /dev/null looks like not a valid shell. It should be /bin/bash or /bin/sh You must checked Shell Access permission for the whole site and each user you want to chroot in ISPCOnfig control panel