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:
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
Recent comments
8 hours 32 min ago
15 hours 13 min ago
19 hours 3 min ago
20 hours 42 min ago
1 day 5 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 18 hours ago
1 day 23 hours ago
1 day 23 hours ago