Wrong $HOME set for user when created by reseller
I created a client with a site as a reseller, reseller has ID client29, the site domain is linked to /var/www/clients/client60/web48/ that is it has client ID client60, but whe I do grep web48:
grep web48 /etc/passwd
web48:x:5048:5035::/var/www/clients/client29/web48:/bin/false
so the homedir is set to wrong dir for web48, more errors:
su web48 -s /bin/bash
$ cd bash: cd: /var/www/clients/client29/web48: No such file or directory
$ echo $HOME /var/www/clients/client29/web48
When the user uploads a site there is an error:
Warning: Unknown: open_basedir restriction in effect. File(/var/www/domain.com/web/index.php) is not within the allowed path(s): (/var/www/clients/client29/web48/web:/var/www/clients/client29/web48/tmp:/usr/share/php5:/tmp:/usr/share/phpmyadmin) in Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
Fatal error: Unknown: Failed opening required '/var/www/domain.com/web/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0