This was kind of interesting, I added chroot to my sshd. And I changed my Management->System Config->User Prefix: to user[WEBID]_ from web[WEBID]_. Now when I create a new user I get a folder: Code: /var/www/web15/user/user15_chrisw/ and in this folder I get all the standard folders. What is interesting is that all the folders in that directory are owned by root and not user15_chrisw or group web15. It was just interesting, I noticed that I was uploading files to what I thought was my website: Code: /var/www/web15/web but I was actually uploading them to Code: /var/www/web15/users/user15_chrisw/web Code: root@server-isp:/var/www/web15# ls -l total 24 drwxrwxr-x 2 root web15 4096 2008-12-23 20:26 cgi-bin drwxr-xr-x 2 root web15 4096 2008-12-23 20:26 log drwxrwxrwx 2 root web15 4096 2008-12-23 20:26 phptmp drwxr-xr-x 2 root web15 4096 2008-12-23 20:26 ssl drwxr-xr-x 3 root web15 4096 2008-12-23 21:13 user drwxrwxr-x 3 root web15 4096 2008-12-23 20:26 web Code: root@server-isp:/var/www/web15# ls -l user/ total 4 drwxr-xr-x 11 user15_chrisw web15 4096 2008-12-23 21:18 user15_chrisw Code: root@server-isp:/var/www/web15# ls -l user/user15_chrisw/ total 32 drwxr-xr-x 2 root root 4096 2008-12-23 21:13 bin drwxr-xr-x 2 user15_chrisw web15 4096 2008-12-23 21:18 chrisw drwxr-xr-x 2 root root 4096 2008-12-23 21:13 dev drwxr-xr-x 4 root root 4096 2008-12-23 21:14 etc drwxr-xr-x 4 root root 4096 2008-12-23 21:14 lib drwxr-xr-x 4 root root 4096 2008-12-23 21:13 usr drwxr-xr-x 3 root root 4096 2008-12-23 21:14 var drwxrwxr-x 2 user15_chrisw web15 4096 2008-12-23 22:58 web
I was looking at this again and I am wondering if this is standard set up for ISPconfig? If it is I could actually use it for a few projects. The downside to this that when I create a user I have to edit the User and Groups to move the home directory in line with the website's root directory. That way the users can all edit the same website, not a 'user' sub folder. You want typically everyone to edit the same folders when they log in: Code: /var/www/web15/web With this each user edits their own folders: Code: /var/www/web15/users/user15_chrisw/web I have to change the user's default directory by editing the server user settings. I think this might be bad as ISPconfig would not know about the change, when future ISPconfig updates or changes have to be made to the account and things get over written. Thanks