[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Correct owner for virtual sites.



Martin Newham wrote:

> Hi there, just got my ISP to migrate all my sites from a RaQ3 to a RaQ4..
> here's my question
> Currently -ALL- sites seem to have an owner of "nobody", should this be
> changed to..
>
> .. the <siteadmin> as defined in the admin website for the virtual site or..
> "httpd"..
> using the command (I assume) chown -R <siteadmin/httpd> * from within the
> /web folder
> of the virtual site..
>
> This only became apparent when I was using FTP logging in as the sitadmin
> for the site
> and finding that I couldn't change anything..
>
> Tips..?
>
> Cheers, Martin.

Hi Martin,
I had a very similar problem with migration, except I did a perl mirror of all my sites as the admin user, which later turned out to have not been the best plan, my files were also only changable by "admin", so a lot of chown's later on all the site, fixed it.  Heres a sample of a site that was created correctly (just now): (note the fblogs is the admin for that site, and the index.html WAS owned by "httpd", but "fblogs" can overwrite it ok)

drwxrwxr-x   2 nobody   site153      1024 Feb  3 16:33 .
drwxrwxr-x   6 nobody   site153      1024 Feb  3 16:30 ..
-rw-r--r--   1 fblogs   site153      7474 Feb  3 16:33 contact.html
-rw-r--r--   1 fblogs   site153      9859 Feb  3 16:33 copyright.html
-rw-rw-r--   1 fblogs   site153      5804 Feb  3 16:33 index.html
-rw-r--r--   1 fblogs   site153      6404 Feb  3 16:33 jokes.html

However I dont think a -R on everything would be wise, unless you dont mind fixing the stats directory (note: mine is not there yet, until 4am I believe)!

Regards
Kul