DISQUS

Ben.geek.nz: iPhone Google Reader/Gmail/Facebook Cookie Fix

  • Travis Washam · 1 year ago
    Dude!!! found the link to here from your post on dermapthera.wordpress.com and I am seriously glad I did. I didnt realize how much i used the facebook app until I had to type my info in 40 times per session! I SSH'd into the phone and changed my permissions per your advice and it works perfect now! thanks!!!
  • Travis Washam · 1 year ago
    edit edit edit
    apparently I have no clue what i am talking about.. if you can delete the previous edit then please do so. But I want to give props to the forum that you posted this link on and it was definitely on macworld.. sorry for the edits and thanks again for the advice
  • Ben · 1 year ago
    Hey thanks Travis. Yeah I cross-posted the fix on several forums. Note I've now worked out the *actual* problem (file ownership) which is a much nicer fix.
  • JC · 1 year ago
    Ben dude, it's nice to see a *IHASIPHONE* post with actual, grunty nerd content.

    Good stuff *(now get back to the funk and post moar pics/stuff about the iPhone in your gloat thread)*
  • Phil Lavelle · 1 year ago
    Thanks so much - this was a massive problem driving me mad and you appear to have helped me solve it!!!

    Got to ask though -j how do you get that great Vodafone logo at the top? Mine is onOrange but I'd love to do the same!!!!
  • Ben · 1 year ago
    Glad to help Phil.
    The vodafone logo came from the team at http://kiwi-ise.co.nz. I don't think they have an Orange logo, but you could probably contact them to find out how they did it, so you can make your own.
  • Dannystarr · 1 year ago
    Thanx heaps, this fix was an easy life saver
  • Jason · 1 year ago
    This all seems great!
    One problem I don't understand where to place that line of code?
    You said it's in the iPhone file system, but how do I access and manually edit that and know where to place it, can someone please help me with that part?

    Cheers.
  • Ben · 1 year ago
    Jason,

    You need to have a jailbroken iPhone. You also need to install the Term-vt100 package, which will give you a command line interface into the iPhone's file system.

    Once you have that, open vt100, enter the password (usually 'alpine'), then type in the commands.
  • Ryu · 1 year ago
    any other way you can do that? terminal doesnt seem to work when i tried to login
  • Ben · 1 year ago
    Sorry, if you're running the 1.1.4 (or 1.1.3 I think) firmware, there's also a "SUID Fix" installer package you need to install, otherwise the password won't work. See here: http://osmethne.com/?q=node/9
  • Stu · 1 year ago
    Dude...an iPhone? They're not even 3G for goodness sakes!
  • Ben · 1 year ago
    Stu, once you use one for a couple of days, it you'll get over it :)

    Nah seriously, the GPRS speed is the *only* annoying thing about the iPhone. Everything else is as damn near perfect as I've ever had on a phone, and lordy knows I've had a few phones.
  • Juan Perez · 1 year ago
    Thanks for the solution,

    I just change the Cookies directory owner
    chown -R mobile /var/mobile/Library/Cookies

    That works for me,

    Anyone have the original permisions for
    /var/mobile/Library/Cookies/ and
    /var/mobile/Library/Cookies/Cookies.plist
  • Chris · 1 year ago
    Thanks a million !
  • Mas · 1 year ago
    Ok... this might sound like a really slow question as I have not seen anyone ask it, but for those who DONT KNOW....

    How do you "change ownership" and enter:

    chown -R mobile /var/mobile/

    I can access my iPhone via SSH and WinScp and reach root and stuff and change CHMOD

    But what is this change ownership and can U just PLEASE excuse me and help simplify that? Thanks.
  • Ben · 1 year ago
    Mas, by typing that command (chown ...) you are changing ownership of all files and directories inside /var/mobile.

    You don't need to do anything else. No chmod or anything. Just type that chown command and it's all fixed.
  • Alex · 1 year ago
    thanks man. So great!!! =)
  • Mas · 1 year ago
    Thanks a lot Ben,

    But WHERE do I type that exactly?
  • francksau · 1 year ago
    Thanks a lot !!
  • Dor · 1 year ago
    hey,
    first of all thank for the post.
    i ran into a problem and I wonder if you guys can help.
    I installed terminal and typed in the "chown" command in order to change ownership
    and got "changing ownership is not permitted" .
    can anyone try helping me please ?
    thanks
  • John H. · 1 year ago
    This worked for me also. Thanks for the tips!
  • Michael McGlade (mcglaysia) · 1 year ago
    Thanks for the help. There are indeed many other help sites, but yours is the most readable and useful. Though, I did have trouble trying to do this right on the phone and ended up using ssh from my Mac and that worked great. I guess because when I was on the phone, root and alpine were not working but by logging in via ssh I could specify a user (root) and alpine worked fine. The ssh tip that helped me was at http://www.tuaw.com/2007/07/23/ssh-on-iphone/
    I had already installed afpd on the phone so had already dealt with that.

    Thanks again.
  • Adam · 1 year ago
    Thanks for your investigative work, dude. Saved me doing it too - as they say - Google first, ask questions later. :) Legend.
  • Mourad zaoui · 1 year ago
    i have a lil probleme here each time i try to enter the fix i keep on getting "Operation Not permitted" am i doing something wrong here
    pls help
    thx
  • Blake · 1 year ago
    Mourad Zaoui,
    I get the same thing when I try to do this fix. It hasn't worked for me.
  • Mourad zaoui · 1 year ago
    SNIF SNIF
  • Blake · 1 year ago
    Guess no ones around to help :(
  • Ben · 1 year ago
    I'm not sure what the problem might be. Are you definitely logged in to SSH as root?
  • Mourad zaoui · 1 year ago
    logged in how do i do that ...and iam not using shh iam using that termùinal thing
  • Justin · 1 year ago
    Okay, so after some searching (and inability to install OpenSSH via Installer.app) I found Cydia (which is available via Installer). Install Cydia and you can then install OpenSSH. Once I did this I was able to login to root on term. To do this type "login" enter "root" press return, for password type "alpine" (passwords do not show up, even dots, in terminal but it does take the password). Press return. You should now see root# rather than mobile$ which indicates successful login as root. Once you have done this enter the string listed in the article and you will ownership will be corrected. Of interest, I did not get an echo of all the files modified, but it seems to have successfully corrected ownership. If you have changed your root password Cydia will apparently help you change it but I have no experience with this feature. Hope this helps!
  • Yann · 1 year ago
    I found another solution that should be suitable to people not having jailbreaked iPhone, and therefore not able to ssh into it.

    The culprit file is corrrupted into your backup, so no matter how many time you restore your iphone, it will be restored as-is, and wrong.

    The solution is to delete it from your iphone backup before restoring :

    Open a terminal window, and type :

    grep “Library/Cookies/Cookies.plist” ~/Library/Application\ Support/MobileSync/Backup/*/*

    If you have one backup, as most people do, you should have only one line as a result. delete this file from the mentioned directory, and restore again.
  • Alex · 1 year ago
    Worked a treat - thanks!
  • adhyetha · 1 year ago
    thanks dude.... it worked... u rock
  • paz · 1 year ago
    You are awesome!!!!!
  • akiss · 1 year ago
    Worked for me!THANXX