• Weird Permissions Thing (rw-r--r--, but vi says "read only")

    From notsew-reversePreceedingAndRemoveThis@notsew-reversePreceedingAndRemoveThis@canncentral.org (Weston C) to comp.sys.mac.system on Tuesday, July 08, 2003 15:10:20
    From Newsgroup: comp.sys.mac.system

    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?
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Kevin McMurtrie@mcmurtri@sonic.net to comp.sys.mac.system on Tuesday, July 08, 2003 22:55:38
    From Newsgroup: comp.sys.mac.system

    In article <df41fe1.0307081410.71b13d5e@posting.google.com>,
    notsew-reversePreceedingAndRemoveThis@canncentral.org (Weston C)
    wrote:

    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?

    10.1 has trouble with file/folder locks getting unbalanced. They may be marked as "in use." It causes some nice system lockups too.
    --- Synchronet 3.18b-Win32 NewsLink 1.113