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

viizi

macrumors regular
Dec 2, 2010
224
68
Ah I just noticed this too. Hmm strange

you can save it using text wrangler i have found but these days I just do the editing inside of terminal. Would be amazing to just use that terminal command and edit quickly in textedit though.

The duplicate thing has been around since at least Lion though
 

leman

macrumors Core
Oct 14, 2008
19,497
19,632
that is cool but when it opens the document is locked and it tries to make a duplicate to make any changes. Any way to have it unlocked? I thought sudo would have taken care of that.

You are right, TextEdit appears to de-elevate itself when invoked as root. You can use any other editor though. My recommendation is TextMate 2. OS X also comes bundled with terminal-only editors vi and nano.
 

viizi

macrumors regular
Dec 2, 2010
224
68
You are right, TextEdit appears to de-elevate itself when invoked as root. You can use any other editor though. My recommendation is TextMate 2. OS X also comes bundled with terminal-only editors vi and nano.

TextMate 2 is awesome, thank you very much
 

andijames

macrumors member
Sep 2, 2010
59
0
Manchester, UK
Is there any reason you can't just use nano on the hosts file?

From the terminal just type sudo nano /etc/hosts

Much easier than vi (IMO) and can be edited nice and quickly from there :)
 

vvl

macrumors newbie
Oct 23, 2014
3
0
I've made update after Yosemite official release and my previously set hosts don't work. I used custom hosts with vpn connection if it's matter.
Solutions described above doesn't work for me.
If anybody know a solution then share it, please.
 

vvl

macrumors newbie
Oct 23, 2014
3
0
OS X upgrades usually trash my custom hosts file - I presume the usual sudo nano commands are the same in 10.10 as before?
Thanks for reply :rolleyes:
/private/etc/hosts is fine. Of cause I have checked it first of all ;)

I found this topic and guys there have same problem as me and don't have a solution.
 

Gav Mack

macrumors 68020
Jun 15, 2008
2,194
23
Sagittarius A*
Thanks for reply :rolleyes:
/private/etc/hosts is fine. Of cause I have checked it first of all ;)

I found this topic and guys there have same problem as me and don't have a solution.

Something that by the look of it won't affect me too much thankfully.

Is that Gasmask app still being supported? I used to give n00bs the link for that who I thought would have had heart failure using nano in terminal.
 

vvl

macrumors newbie
Oct 23, 2014
3
0
Something that by the look of it won't affect me too much thankfully.

Is that Gasmask app still being supported? I used to give n00bs the link for that who I thought would have had heart failure using nano in terminal.
Good joke, g@y...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.