So I was working on a php script on my OS X powerbook (Lombard,
10.1.5), editing in vi, and I went to save, and vi tells me:
Read-only file, not written; use ! to override.
which I do, but I'm highly curious as to why this file is suddenly
read only. So in the shell, I do:
[localhost:LogoWorks/LW/HTMail] weston% ls -l
total 32
-rw-r--r-- 1 weston staff 475 Jul 8 15:49 1.css
-rw-r--r-- 1 weston staff 1572 Jul 8 15:54 1.php
-rw-r--r-- 1 weston staff 3277 Jul 8 15:54 2.php
drwxr-xr-x 3 weston staff 58 Jul 7 15:14 Templates
drwxr-xr-x 5 weston staff 126 Jul 7 15:14 meta
-rwxr-xr-x 1 weston staff 2649 Jul 8 02:27 misc.php
The file "1.php" was the file I was editing. Note that the user weston
(which is me) has ownership and write permissions.
I get the same message from vi with "2.php" but NOT "1.css", curiously >enough.
Any ideas?
| Sysop: | Gate Keeper |
|---|---|
| Location: | Shelby, NC |
| Users: | 815 |
| Nodes: | 20 (0 / 20) |
| Uptime: | 86:13:24 |
| Calls: | 13,539 |
| Calls today: | 4 |
| Files: | 5,294 |
| D/L today: |
5 files (1,949K bytes) |
| Messages: | 612,682 |