drpks wrote:
Is /var/www/example.com HOME directory for that username? You can check it executing "env" from console with the username rights, and you will see one line "HOME=/your/home/path".
Can you tell me exactly what should I type for env command, what is the correct syntax?
If I type env username
I get no such file or directory
drpks wrote:
That HOME should be /var/www/example.com. If it isn't, you can edit your user with "usermod -d /var/www/example.com username".
When I try usermod -d /var/www/example.com username
I get usermod: no changes, I guess that means that's fine.
As I said, I'm able to login, but the user can see everything else on the server, he can browse to the top, he can't write anywhere else but in his directory example.com, but I need also that he can not see anything else but his own site.