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 Users outsite website_docroot (http://www.howtoforge.com/forums/showthread.php?t=59315)

softstein 30th October 2012 14:12

SSH Users outsite website_docroot
 
Hi! My ISPconfig3 has the problem that SSH users are not generated. The error message is

Quote:

WARNING - Directory of the shell user is outside of website docroot.
Digging in the sourcecode it turns out that the paths are different:
/home/www/clients/client11/web15 != /var/www/clients/client11/web15

This comes because all websites are located in /var/www (which is symlinking to /home/www ). Sure I changed all paths in Server Config accordingly.

What I do not know yet is: Where is the path in $data['new']['dir'] (line 77 in http://fossies.org/unix/privat/ISPCo...plugin.inc.php ) been taken from?

Changing the homedir of the SSH user does not make a difference. Did I overlook a configuration option here?

Any help is appreciated. Thanks!

till 30th October 2012 14:40

The directories of the ssh users are based on the directory of the website.

Quote:

This comes because all websites are located in /var/www (which is symlinking to /home/www ). Sure I changed all paths in Server Config accordingly.
This can not work with a symlink as the real path is not the same then the website path. Remove the symlink and mount the directory with mount --bind instaed.

http://backdrift.org/how-to-use-bind-mounts-in-linux

softstein 30th October 2012 16:21

solved :)
 
That made it. Man muss nur darauf kommen...
Thank you very much, Till!


All times are GMT +2. The time now is 17:24.

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