#1  
Old 17th January 2011, 09:27
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 34
Thanked 3 Times in 3 Posts
Default SSH jailkit wrong folder

I create a ssh user with "Chroot Shell" set to "Jailkit" and home directory to /var/www/clients/client1/web1 (the default).

So ssh user start folder is /home/web1, that is
/var/www/clients/client1/web1/home/web1,
and can see only this path:
/home
/home/[shell_user_name]
/home/web1

The problem is that the right web site folder is
/var/www/clients/client1/web1/web
which is unreachable by the ssh user.

In this situation the user is unable to upload his site in the correct folder.

Am I doing something wrong?

How can I fix this problem?
Reply With Quote
Sponsored Links
  #2  
Old 17th January 2011, 11:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

There is no problem and the paths are correct. The jail root of a website is /var/www/clients/client1/web1/ and every ssh user has its own homedire inside the jail (/var/www/clients/client1/web1/home/web1). The directory /var/www/clients/client1/web1/web is the web dir and of course this is reachable by the ssh user, as it has the same userid and it is inside the jail.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
aldo (17th January 2011)
  #3  
Old 17th January 2011, 11:48
aldo aldo is offline
HowtoForge Supporter
 
Join Date: Jan 2011
Posts: 98
Thanks: 34
Thanked 3 Times in 3 Posts
Default

You are right, sorry!

Is it possible to change the default start folder to / (user root) or /web instead of /home/web1?
Reply With Quote
  #4  
Old 17th January 2011, 12:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

No, thats not possible.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
aldo (17th January 2011)
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
setting up chrooted ssh user, jailkit installed after ispconfig bn61 Installation/Configuration 7 5th May 2011 16:02
SSH jailkit problem Andreas0815 Installation/Configuration 11 15th January 2011 19:52
Control access to folder both from ssh and ftp. newbie14 Installation/Configuration 3 7th October 2010 14:44
how to copy a folder via SSH on CentOS 5? dealspiggy HOWTO-Related Questions 3 8th September 2008 10:09
Installation Troubles bswinnerton Installation/Configuration 4 29th July 2007 16:56


All times are GMT +2. The time now is 05:52.


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