How can I edit this file?

Discussion in 'Mac Basics and Help' started by ItsAdot, Feb 5, 2010.

  1. ItsAdot macrumors member

    Joined:
    Jul 20, 2009
    Location:
    Belgium
    #1

    Attached Files:

  2. richard.mac macrumors 603

    richard.mac

    Joined:
    Feb 2, 2007
    Location:
    51.50024, -0.12662
    #2
    you dont have write permissions. either change its permissions to give you write support in the Get Info window (remember to change it back ;)) or edit it using a text editor e.g. 'Nano' in Terminal using sudo permissions.
     
  3. CylonGlitch macrumors 68030

    CylonGlitch

    Joined:
    Jul 7, 2009
    Location:
    SoCal
    #3
    You're trying to edit a system plist with a user account, right? Select the file, and hit CMD-I to bring up the information panel on it. At the bottom is a "Sharing & Permissions" section. Set "everyone" or (yourname (Me)) to Read & Write. You'll need the Admin name and Password, because you'll need to click the lock to unlock it first.

    Then you should have no problem editing it.
     
  4. ItsAdot thread starter macrumors member

    Joined:
    Jul 20, 2009
    Location:
    Belgium
    #4
    Nope, doesn't work :( Still getting the same message
     
  5. CylonGlitch macrumors 68030

    CylonGlitch

    Joined:
    Jul 7, 2009
    Location:
    SoCal
    #5
    Open a terminal
    CD to the correct directory
    type : "sudo vi <filename>"
    Enter Admin password
    Edit File (note, you may need help with VI for this)
    type ":wq" (without quotes) to save the file and exit

    You SHOULD be able to edit it. If you can't it would, at least to me, seem like you don't have admin access or the admin password was wrong.
     
  6. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #6
    C'mon, vi? I had to take a course to learn how to use the bloody thing. Instead, use

    sudo nano ~/Library/Preferences/com.apple.PowerManagement.plist

    It's much more self-explanatory to use.
     
  7. CylonGlitch macrumors 68030

    CylonGlitch

    Joined:
    Jul 7, 2009
    Location:
    SoCal
    #7
    I don't know how to use my iPod nano to edit a file. ;) Never used the app, been using VI for 15 years, so it's my goto editor. :D
     
  8. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #8
    Don't get me wrong, I use vi(m) for all of my editing work now that I understand how it works. I still occasionally hit a key by accident and end up with strange and unexpected results, but it is undeniably more powerful than nano. I just don't think that much power is necessary for a (relative) newbie wanting to edit one plist. nano has all (or most) of its shortcut keys displayed in the UI. It also starts in editor mode, unlike vi.
     
  9. ItsAdot thread starter macrumors member

    Joined:
    Jul 20, 2009
    Location:
    Belgium

Share This Page