Elberto,
You’ve got something goofy going on because there is no need to make wp-layout.css, or, indeed, any CSS file 666.
What browser are you using when this happens? What version of WP are you using? How about a link to your site so we can have a look ourselves?
Anonymous
A file needs to be writable by WordPress to be able to edit it through the web interface. If you don’t want to edit it through the web interface you shouldn’t need to touch the permissions. If you do want to edit through the web interface then the permission depends on how your host is set up. In most cases the file will need to be world writable.
Yeah, you’re right about the writable thing for using the built-in template editor for WP.
Personally, I never use that editor, so I never gave it any thought. Good catch!
To edit thru the WP interface the files have to be writeable by the webserver process. That’ll usually be “apache” or “www” or some such. Since you’re not in the servers group or vice verse, the files have to be world writable.
The other option would be to change the file’s group to the webserver’s group. Then change the file’s permission to be group writable.
Then it should work.