how come iOS doesn't let users login as root?

Discussion in 'iOS 6' started by dxyovak, Jun 13, 2013.

  1. dxyovak macrumors newbie

    Jun 13, 2013
    My friend is telling me that in order to edit the hosts file on an iPhone I would have to jailbreak the phone. Isn't there some way to simply login as root (like on linux where you can sudo such and such to temporarily be root)?

    If I jailbreak an iPhone and edit the hosts file, can I then "unjailbreak it" and still have use of my edited hosts file?

    I don't understand why iOS isn't allowing user to make changes like editing the hosts file.
  2. Intell macrumors P6


    Jan 24, 2010
    iOS doesn't allow it because there is no need to edit system files like that. That's why jailbreaks exist.
  3. Nyy8 macrumors 6502a


    Jun 12, 2011
    New England
    To answer your other question no, You would need to install something like iFile to edit the filesystem, then keep it jail broken for the changes to stay.

Share This Page