Lots of times, when installing web applications, you need to make specific directories writable by all users (in particular, the user running Apache). By default, though, this isn’t the case when you create directories in Windows. And the Properties window has a “Read Only” checkbox, but setting it has never seemed to work for me.
I found this workaround. It involves cygwin; perhaps there’s a simpler way.
- Right-click the directory and go to Properties.
- Click the Security tab
- Highlight “Everyone” and click the Edit button
- Click “Allow” for full control
- OK out
- Now, with cygwin, you can set the permissions on that directory (e.g., “chmod 777 -R /path/to/my/directory”)
That’s it.
UPDATE (10/7/09):
I noticed today that this doesn’t always seem to recursively set the permissions. You can do the same thing command-line at an Admin prompt:
cacls c:\path\to\directory /T /G Everyone:F