Old 17th May 2006, 21:54
Norman Norman is offline
HowtoForge Supporter
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default Chroot SSH + ISPConfig

Does anyone have any tutorial for this? Is it possible and relatively easy to do without breaking the system for current ISPconfig users?
Reply With Quote
Sponsored Links
Old 12th February 2007, 15:03
jameso jameso is offline
Join Date: Nov 2006
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts

I am also interested in information on how to do this.

Does anyone have any information on how to do this without affecting ISPConfig?

Reply With Quote
Old 13th February 2007, 18:24
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

Take a look here: http://www.howtoforge.com/forums/sho...+ssh+ispconfig
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 5th March 2007, 08:31
jameso jameso is offline
Join Date: Nov 2006
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts

Hi falko,

Thanks for your reply, however that howto talks about the chroot limiting users to /home/chroot.

I wish to be able to set up my server so that when each ISPconfig user logs in, they are limited to their /var/www/webx/ directory, and cannot go outside of this. Obviously the root account should be able to go anywhere.

Any hints?

Reply With Quote
Old 5th March 2007, 09:49
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts

Please install the chroot as described in the howto that falko posted. The setup is the same if you want to chroot to /home/chroot or to the user directories in ISPConfig. Then enable chrooting in ISPConfig in the file /home/admispconfig/ispconfig/config.inc.php

By the way, you will find many posts that tell you the same when you search the forum for the word chroot
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 9th March 2007, 19:24
jonwatson jonwatson is offline
Senior Member
Join Date: Feb 2007
Posts: 176
Thanks: 15
Thanked 3 Times in 3 Posts


I've just discovered that my shell users aren't chrooted. Yikes!

Anyhow, I followed the Howto that Falko pointed to and all seemed to go well, but I'm not getting the desired behaviour. None of my users can log in - they are all greeted with a /bin/bash file or directory does not exist error when they try to log in.

I have enabled the chroot option in config.inc.php and bash does exist in /chroot/home/bin.

I have restarted both ssh and ispconfig_server.

My users from /etc/passwd look like this:

which looks right to me in that the '.' appears in the right place. I'm not sure why ISPConfig is putting a :/bin/bash after it, though, but I'm not chroot expert by any means so that may be correct.

The user in question has the shell access option checked under his user settings and the web in question has shell access enabled as well.

Any idea where I'm going wrong?


Edit: ISPConfig 2.2.11

Last edited by jonwatson; 9th March 2007 at 19:29.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig & Bind chroot not starting awd.pt Installation/Configuration 2 29th January 2008 11:28
FC4 Setup DNS and ISPCONFIG issues The General Installation/Configuration 7 15th May 2006 10:45
ISPConfig 2.3.1-dev released till General 0 8th May 2006 23:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16
Apache chroot please, for ISPConfig and ubuntu breezy! :) danf.1979 Suggest HOWTO 0 3rd April 2006 03:46

All times are GMT +2. The time now is 00:08.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.