Professional Web Applications Themes

Weird Permissions Thing (rw-r--r--, but vi says "read only") - Mac Applications & Software

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 ...

  1. #1

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

    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?
    Weston C Guest

  2. #2

    Default Re: Weird Permissions Thing (rw-r--r--, but vi says "read only")

    In article <df41fe1.0307081410.71b13d5eposting.google.com> ,
    [email]notsew-reversePreceedingAndRemoveThiscanncentral.org[/email] (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.
    Kevin McMurtrie Guest

Similar Threads

  1. "Contribute changes file permissions" Tech Note tn_19176
    By John Waller in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: May 26th, 09:48 AM
  2. NTFS Permissions & "Failed to Start Monitoring File Changes"
    By Alex Maghen in forum ASP.NET Security
    Replies: 0
    Last Post: February 3rd, 02:21 AM
  3. STOPPING the "Adobe Updating" Component thing...NIGHTMARE
    By zenpop@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 1
    Last Post: February 11th, 10:41 PM
  4. And they say there is "no such thing as a stupid question"?
    By i-carus webforumsuser@macromedia.com in forum Macromedia Dynamic HTML
    Replies: 4
    Last Post: September 16th, 05:09 PM
  5. weird "perl -e" behaviour
    By Francois Wisard in forum PERL Miscellaneous
    Replies: 4
    Last Post: July 31st, 12:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139