Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 26, 2010, 10:52 AM   #1
RossMc
macrumors 65816
 
Join Date: Apr 2010
Location: Newcastle, UK
Editing Host File?

I am trying to edit the host file to point to saurik's server so I can downgrade my iPhone from 4.0 to 3.1.3 but when I edit it and then try to save it I get an error saying I don't have the permissions go to the file then get info and check the permissions.

When I do this and change it so I can read/write to the file then I try to edit it again and save I just get the same error message?
RossMc is offline   0 Reply With Quote
Old Jun 26, 2010, 11:12 AM   #2
aarond12
macrumors 6502a
 
aarond12's Avatar
 
Join Date: May 2002
Location: Dallas, TX USA
Sudo

If you're not logged in as root (which you should be), then you will need to use the "sudo" command before the editor, such as "sudo vi hosts".

You can also try copying (the "cp" command) the hosts file to another folder, editing it, then copying it back (also possibly with the sudo command before it).

In short, you shouldn't have upgraded to 4.0 if you still wanted your phone jailbroken.

-Aaron-
aarond12 is offline   0 Reply With Quote
Old Jun 26, 2010, 11:13 AM   #3
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
How are you trying to edit it? I usually do it through Terminal,

Code:
sudo nano /etc/hosts
You could also download TextWrangler and edit the file. It will prompt for the admin credentials to save it.
angelwatt is offline   0 Reply With Quote
Old Jun 26, 2010, 12:07 PM   #4
RossMc
Thread Starter
macrumors 65816
 
Join Date: Apr 2010
Location: Newcastle, UK
Quote:
Originally Posted by aarond12 View Post
If you're not logged in as root (which you should be), then you will need to use the "sudo" command before the editor, such as "sudo vi hosts".

You can also try copying (the "cp" command) the hosts file to another folder, editing it, then copying it back (also possibly with the sudo command before it).

In short, you shouldn't have upgraded to 4.0 if you still wanted your phone jailbroken.

-Aaron-
I know.

I have found a way to downgrade to 3.1.3 jailbreak it with Spirit and then pwn your iboot and lib files so you can then use Pwnage tool to jailbreak iOS 4.

Quote:
Originally Posted by angelwatt View Post
How are you trying to edit it? I usually do it through Terminal,

Code:
sudo nano /etc/hosts
You could also download TextWrangler and edit the file. It will prompt for the admin credentials to save it.
Thanks I done it through Terminal and it worked fine.
RossMc is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone: Host File HankHowdy Jailbreaks and iOS Hacks 3 Mar 3, 2014 10:39 PM
etc host file problem marceff Mac Basics and Help 5 Dec 4, 2013 05:37 AM
Editing hosts file resulted in empty file DGLauren OS X 10.8 Mountain Lion 6 Jun 22, 2013 02:37 AM
Block Facebook using Host file wluprocks Mac Basics and Help 23 Mar 26, 2013 09:29 AM
Host file Terminal Password DeafRaiders OS X 1 Nov 29, 2012 06:34 AM

Forum Jump

All times are GMT -5. The time now is 03:11 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC