HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   FTP chroot not working in ISPConfig 3.0.5.2 (http://www.howtoforge.com/forums/showthread.php?t=61893)

gzx21 19th May 2013 13:48

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!

till 20th May 2013 15:21

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.

gzx21 6th November 2013 15:46

Quote:

Originally Posted by till (Post 297484)
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

till 6th November 2013 15:53

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.

gzx21 6th November 2013 19:39

Quote:

Originally Posted by till (Post 305082)
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


All times are GMT +2. The time now is 18:04.

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