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)
-   -   SSH jailkit wrong folder (http://www.howtoforge.com/forums/showthread.php?t=50978)

aldo 17th January 2011 10:27

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?

till 17th January 2011 12:17

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.

aldo 17th January 2011 12:48

You are right, sorry! :o

Is it possible to change the default start folder to / (user root) or /web instead of /home/web1?

till 17th January 2011 13:41

No, thats not possible.


All times are GMT +2. The time now is 10:58.

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