Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th May 2013, 14:48
gzx21 gzx21 is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default FTP chroot not working in ISPConfig 3.0.5.2

Hello, I have a fresh installation of ISPConfig on Debian Wheezy 64bit. I closely followed this installation guide:

http://www.howtoforge.com/perfect-se...ot-ispconfig-3

I've been trying to get all the parts working and I've encountered weird problem with FTP access for clients.
I created a new site as admin for the first user. (mydomain.com)
Then I logged in as a user and created a FTP account for that site. (dummyuser)

However when I log in, the user is chrooted in a weird way.
Contents of the home as the FTP user sees it:
http://i.imgur.com/Usgg7pt.png
Real contents:
http://pastebin.com/fH6tF3CG

I guess this is not expected behavior, I expected only access to empty folder which would be vhost htdocs roots.

I also checked settings and FTP users are set to be chrooted in /var/www/clients/[client]/[web]

Is there anything I am missing?

Thanks in advance!
Reply With Quote
Sponsored Links
  #2  
Old 20th May 2013, 16:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,495
Thanks: 835
Thanked 5,534 Times in 4,352 Posts
Default

Thats correct, it is called a jail. Dont mix up the folder names that you see there ith the system folders which have the same name.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th November 2013, 16:46
gzx21 gzx21 is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Thats correct, it is called a jail. Dont mix up the folder names that you see there ith the system folders which have the same name.
Hello, I am sorry to reply so late, but the problem occured again and I am not sure how it happened.

As to your reply - could you please elaborate a bit? I use FTP only to connect to web directory (i.e. /var/www/clients/clientX/webY/) and thus it is not desirable to have all the other directories like bin and lib there.

What confuses me is that no other ftp account has these.

Is is safe to delete them?

Thank you very much.

Regards,
gzx21
Reply With Quote
  #4  
Old 6th November 2013, 16:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,495
Thanks: 835
Thanked 5,534 Times in 4,352 Posts
Default

Quote:
As to your reply - could you please elaborate a bit? I use FTP only to connect to web directory (i.e. /var/www/clients/clientX/webY/) and thus it is not desirable to have all the other directories like bin and lib there.
it is absoluetley ok to have copies of thesa directories there as thats a jail. If you dont know what a jail is, please try to look it up with google or wikipedia.

Quote:
What confuses me is that no other ftp account has these.
If the website has a jailed ssh user or a cronjob, thenthese files must be there.

Quote:
Is is safe to delete them?
If you delet them, the ssh user and cronjobs of the site will fail. You wont be able to get them working again without deleting and recreating the site. So as long as you want to use this site, dont delete these required folders.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 6th November 2013, 20:39
gzx21 gzx21 is offline
Junior Member
 
Join Date: May 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
it is absoluetley ok to have copies of thesa directories there as thats a jail. If you dont know what a jail is, please try to look it up with google or wikipedia.

If the website has a jailed ssh user or a cronjob, thenthese files must be there.

If you delet them, the ssh user and cronjobs of the site will fail. You wont be able to get them working again without deleting and recreating the site. So as long as you want to use this site, dont delete these required folders.
I know what jail is, I was just confused that the directories appeared there (for "no reason") and didn't realize that the particular web had cron job set. Thank you very much for your time and detailed explanation!

All the best,
gzx21
Reply With Quote
Reply

Bookmarks

Tags
chroot, ftp

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
Mailman not working in ISPConfig 3.0.5.2 gzx21 Installation/Configuration 0 19th May 2013 14:32
All files gone after changing quota to 0 spynode General 17 19th January 2012 15:41
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 21:01
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 23:47
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 22:12


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


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