Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ItsAdot

macrumors member
Original poster
Jul 20, 2009
34
0
Belgium

Attachments

  • Schermafbeelding 2010-02-05 om 16.09.21.png
    Schermafbeelding 2010-02-05 om 16.09.21.png
    63.2 KB · Views: 72
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.
 
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.
 
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.
 
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.

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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.