Click to See Complete Forum and Search --> : file permissions


360
03-16-2001, 02:50 AM
Still getting use to administrating my RH 7 web box with Apahce.

I ran this command:
chmod 755 -R /home/sites

Now I can view my web sites but every time I edit a file, permission is denied to view it through a web browser.

Then I run the same command and I can see the site but as soon as I edit it, permission is denied to view it again.

Can anyone help?

Thank,

Gene

7
03-16-2001, 08:52 AM
Hi.

You have two choices,

1. Manually do a chmod to change the permissions (this is the one you should do). Or

2. edit /etc/profile and change the line that says 'umask xxx' to whatever file permission number you want your files to default to. Careful, you could easily fsck up permissions on files you dont want others to see.