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

FlameArchon

macrumors newbie
Original poster
Jan 26, 2012
1
0
So, I want to make some changes in the hosts directory. So, as root, I type this in:

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts

However, I get this response;

2012-01-26 19:37:49.146 TextEdit [233:8e13] NSTrackPersistentURLs:LSSharedFileLiseInsertItemURL ( ) failed at inserting URL file://localhost/etc/hosts (etc/hosts)

Even though TextEdit still opens with exactly what I'm looking for. However, even logged in as root it won't let me make any changes. Any ideas?
 
try editing it with pico (using sudo)

I think you might need start an OSX app using open, that is sudo open /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.