#1  
Old 5th December 2010, 16:55
twinturbo twinturbo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chroot Not working

Having set up all the other parts of ISPC 3.0.3 I decided to check a ssh user. Jailkit was install as per the Perfect Ubuntu 10.10.

I had to change the home path in the server control panel as it seemed to be wrong.

Users are created and the shell changed to bash, however the user is not chroot to their home dir and can browse from the root.

Bit of a show stopper at the moment.

Any ideas.

TT
Reply With Quote
Sponsored Links
  #2  
Old 5th December 2010, 18:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,490
Thanks: 835
Thanked 5,526 Times in 4,346 Posts
Default

Quote:
I had to change the home path in the server control panel as it seemed to be wrong.
Thats most likely the reason for the non working chroot. Do not edit the path manually or change a shell of the user manually.

You should delete the ssh user and the website in ispconfig, wait a few minutes and create the website again and the ssh user. But do not change nay paths manually.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th December 2010, 20:39
twinturbo twinturbo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

not made any command line changes,

i change the jailkit chroot option in server config to

/var/www/clients/client[client_id]

as the previous default setting ( i think /home/[username] ) was landing the user in some spurious location with a blank folder.

I have created a new user with the same result.

Deleting the website seems a little drastic, sure i can tgz it but it's not a good solution if I have a large number of sites to fix.

Cheers

TT
Reply With Quote
  #4  
Old 5th December 2010, 21:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,490
Thanks: 835
Thanked 5,526 Times in 4,346 Posts
Default

Quote:
i change the jailkit chroot option in server config to

/var/www/clients/client[client_id]
This can not work, as jails are created per website and not per client.

Quote:
as the previous default setting ( i think /home/[username] ) was landing the user in some spurious location with a blank folder.
You mean the were landing in their home folder, which is of course empty by default.

To fix your problem, please undo your path changes and delkete and recreate every website that you created with these wrong paths as the jail is created once for every webiste. So deleting a ssh user is not enough, this will not fix the jail.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 5th December 2010, 21:56
twinturbo twinturbo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did that after initialy finding I was not chrooted.

I will try again with a fresh user and site. but i think the result will be similar.

what's the default path for the home? I did not take note of it.

TT
Reply With Quote
  #6  
Old 5th December 2010, 23:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,490
Thanks: 835
Thanked 5,526 Times in 4,346 Posts
 
Default

The jailkit chroot home default is:

/home/[username]

be aware that this path is relative to the chrooted path and not relative to /
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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
auto update svn working copy donix Installation/Configuration 0 9th June 2010 21:59
ISPconfig Jaikit / SSH Chroot not working (Lenny) edge Installation/Configuration 20 8th May 2009 16:07
Improper use of CHROOT enviroment X secure file transfer between customer and admin. adrenalinic Installation/Configuration 1 21st December 2008 22:48
Howto add programes to chroot users? badgerbox76 Server Operation 7 8th April 2008 23:21
ssh chroot works, but no scp for chroot users zokahn HOWTO-Related Questions 5 30th January 2006 10:33


All times are GMT +2. The time now is 21:23.


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