Web Hosting Talk







View Full Version : sudden error in front page.


joubarani
01-05-2002, 10:45 AM
Hi,

Suddenly we saw the owner of files under the web directory changed from user name to nobody and all the cgi scripts stopped working.

So do you have any suggestions?
Thanks in advance.

Joubarani

Chicken
01-05-2002, 07:21 PM
Seems odd that this would have happened in the first place (makes me wonder what happened there), but you can give the directory and all files permission again:

chown -R username foldername

That gives permission to the folder and all files/subfolders/files in that folder. For this exact command above, you'd be just above the folder (see it when you ls).

CmptrWz
01-05-2002, 08:50 PM
Chicken, I think that will break frontpage.

From what I know, when you turn on frontpage for a site it changes all the permissions to nobody, it only works then. However, most sites don't let scripts owned by nobody to run by default, so the scripts stop working.

Changing the owner back to the site or a user makes it so frontpage can't do anything with them.

You could create a CGI user, or a CGI subdomain, to run your scripts on.

kprojects
01-05-2002, 09:44 PM
In most cases, chowning all the files under 'web' to user.site will be fine, then next time you disable and re-enable frontpage it will change it back to nobody. The frontpage scripts have always run fine as those users when I have done this in the past..

Some, as cmputr said.. may not work..

Rob

Chicken
01-05-2002, 10:23 PM
I think I missed the 'front page' part... whups...

joubarani
01-09-2002, 11:32 AM
Hi,
We are also amazed why this happend sudenly. However, we changed all the messed files and returned the owner and permission as they were. Thank you for your help any.
Regards,

Joubarani