Results 1 to 8 of 8
Discuss chown mobile:mobile - on Mac, not iPhone and not via SSH at the General - Hackint0sh.org; ...
  1. #1
    Rookie Array

    Join Date
    Nov 2008
    Location
    Poland
    Posts
    24
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default chown mobile:mobile - on Mac, not iPhone and not via SSH

    I need to change filesí permissions on my Mac (for future uploading them to iPhone). How can I use chown mobile:mobile command on Mac? root:wheel works fine, but it seems that Mac canít change permissions to mobile:mobile. Is there a way to do it? Itís very important - I must do it on my Mac.



  2. #2
    Super Moderator Array Olethros's Avatar

    Join Date
    Sep 2007
    Location
    Norway
    Posts
    8,360
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    439

    Default

    Quote Originally Posted by Davvido View Post
    I need to change filesí permissions on my Mac (for future uploading them to iPhone). How can I use chown mobile:mobile command on Mac? root:wheel works fine, but it seems that Mac canít change permissions to mobile:mobile. Is there a way to do it? Itís very important - I must do it on my Mac.
    Don't think you understand unix file permissions basics.

    What you are asking is essentially not very possible. How do you plan on transferring the files *with* permissions to the iPhone?
    Please read the stickies & search forum before posting!
    How to report an iTunes restore/update fail in a useful manner
    -

    iPad 3G 64GB (4.3.3, Redsn0w) oldest SHSH 3.2.2
    iPhone 4 32GB (4.2.1, Redsn0w JB-monte) oldest SHSH 4.1
    iPhone 3GS 32GB (4.3.3; Pwnagetool) factory unlocked oldest SHSH 3.1
    iPhone 8GB (3.1.3; Pwnagetool) AT&T Locked - Unlocked with bootneuter

    -
    Did we solve your problem? Got a dollar or two spare ? Donate!

  3. #3
    Rookie Array

    Join Date
    Nov 2008
    Location
    Poland
    Posts
    24
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    DiskAid transfers files with their permissions to iPhone. I’ve just transferred file with root:wheel permissions and everything is fine. Now I need to transfer some files with mobile:mobile permissions, but I don’t know how to set it.

    And of course there are many other ways - uploading in tar/zip, packed in deb, etc.
    Last edited by Davvido; 02-08-2010 at 12:26 PM.

  4. #4
    Super Moderator Array Olethros's Avatar

    Join Date
    Sep 2007
    Location
    Norway
    Posts
    8,360
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    439

    Default

    Quote Originally Posted by Davvido View Post
    DiskAid does it really good. Iíve just transferred file with root:wheel permissions and everything is fine. Now I need to transfer some files with mobile:mobile permissions, but I donít know how to set them.
    I don't believe that AFC2 (the protocol used by DiskAid) can set ownership or permissions.

    You can:

    1. SSH into the iPhone and use chmod or chown
    2. Build a DEB package to do what you want and use Cydia's autoinstall function to install the package for you on the next restart
    3. Build an iPhone backup that just contains this one file (with the correct signatures/hashes and permissions) then restore this to the iPhone.


    Realistically, only the first option is practical for you
    Please read the stickies & search forum before posting!
    How to report an iTunes restore/update fail in a useful manner
    -

    iPad 3G 64GB (4.3.3, Redsn0w) oldest SHSH 3.2.2
    iPhone 4 32GB (4.2.1, Redsn0w JB-monte) oldest SHSH 4.1
    iPhone 3GS 32GB (4.3.3; Pwnagetool) factory unlocked oldest SHSH 3.1
    iPhone 8GB (3.1.3; Pwnagetool) AT&T Locked - Unlocked with bootneuter

    -
    Did we solve your problem? Got a dollar or two spare ? Donate!

  5. #5
    Rookie Array

    Join Date
    Nov 2008
    Location
    Poland
    Posts
    24
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I don’t have Cydia, I don’t have SSH - I need to set permissions on my Mac and then copy files to iPhone. DiskAid doesn’t change permissions - they stay the same after transferring if I replace a file. Just want to know how to set mobile:mobile on Mac. And yes - iPhone IS JAILBROKEN. Don’t make a fool of me. I’m not a newbie. Anyway - big thanks for the reply.
    Last edited by Davvido; 02-08-2010 at 01:10 PM.


  6. #6
    Super Moderator Array Olethros's Avatar

    Join Date
    Sep 2007
    Location
    Norway
    Posts
    8,360
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    439

    Default

    Quote Originally Posted by Davvido View Post
    I donít have Cydia, I donít have SSH - I need to set permissions on my Mac and then copy files to iPhone. DiskAid doesnít change permissions - they stay the same after transferring if I replace a file. Just want to know how to set mobile:mobile on Mac. And yes - iPhone IS JAILBROKEN. Donít make a fool of me. Iím not a newbie. Anyway - big thanks for the reply.
    Why don't you have Cydia? Do you have mobileterminal installed?

    I really don't think what you want is possible. (the way you want to do it)
    Please read the stickies & search forum before posting!
    How to report an iTunes restore/update fail in a useful manner
    -

    iPad 3G 64GB (4.3.3, Redsn0w) oldest SHSH 3.2.2
    iPhone 4 32GB (4.2.1, Redsn0w JB-monte) oldest SHSH 4.1
    iPhone 3GS 32GB (4.3.3; Pwnagetool) factory unlocked oldest SHSH 3.1
    iPhone 8GB (3.1.3; Pwnagetool) AT&T Locked - Unlocked with bootneuter

    -
    Did we solve your problem? Got a dollar or two spare ? Donate!

  7. #7
    Rookie Array

    Join Date
    Nov 2008
    Location
    Poland
    Posts
    24
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    IT IS possible. I’ve transferred file with root:wheel permissions and these permissions stay untouched after transfer. I’ve tried it with system files, which means that bad permissions = stay on bootscreen. But my iPhone has booted up without any problems. So I need one advice: how to set mobile:mobile permissions on Mac. The rest is my own problem.
    Last edited by Davvido; 02-08-2010 at 01:17 PM.

  8. #8
    Super Moderator Array Olethros's Avatar

    Join Date
    Sep 2007
    Location
    Norway
    Posts
    8,360
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    439

    Default

    Quote Originally Posted by Davvido View Post
    IT IS possible. Iíve transferred file with root:wheel permissions and these permissions stay untouched after transfer. Iíve tried it with system files, which means that bad permissions = stay on bootscreen. But my iPhone has booted up without any problems. So I need one advice: how to set mobile:mobile permissions on Mac. The rest is my own problem.
    Firstly: root:wheel refers to ownership (user:group) not permissions
    The permissions are written something like this: rw-r-r

    Secondly, you're on a mac - it being a unix based OS has a root account and a wheel group. This is why you can chown root:wheel on your mac.

    There is no mobile account or mobile group on your mac. That is why the chown command fails.

    Thirdly, I think you misunderstand the way the afcd service works.

    running:
    ps -jA | grep afcd | grep root

    gives:
    Code:
    root       212     1   212 c3501270    0 S      ??    0:04.80 /usr/libexec/afcd --lockdown -d /
    running

    ps -jA | grep afcd | grep mobile
    gives:
    Code:
    mobile     202     1   202 c1f7f618    0 S      ??    0:00.82 /usr/libexec/afcd --lockdown -d /var/mobile/Media -u mobile
    mobile     204     1   204 c1f7f3a8    0 S      ??    0:00.01 /usr/libexec/afcd --lockdown -d /var/mobile/Media -u mobile

    What this means is you can connect to afcd for the entire iPhone filesystem and any file you copy is copied as user root.

    This is why you *think* it is preserving file/group ownership, when it actuality the afcd service runs as root (which is what DiskAid uses to send files to the iPhone)


    Or you can connect to just the /var/mobile/Media sub-area of the filesystem and any file you copy is copied as user mobile (this is how iTunes connects to the iPhone, even for non jailbroken iPhones)

    DiskAid actually allows you to choose between the two, in the lower left hand part of the DiskAid window.

    Still no way to set "permissions" they are taken from the default umask. However what I have explained partly solves the "ownership" problem.
    Please read the stickies & search forum before posting!
    How to report an iTunes restore/update fail in a useful manner
    -

    iPad 3G 64GB (4.3.3, Redsn0w) oldest SHSH 3.2.2
    iPhone 4 32GB (4.2.1, Redsn0w JB-monte) oldest SHSH 4.1
    iPhone 3GS 32GB (4.3.3; Pwnagetool) factory unlocked oldest SHSH 3.1
    iPhone 8GB (3.1.3; Pwnagetool) AT&T Locked - Unlocked with bootneuter

    -
    Did we solve your problem? Got a dollar or two spare ? Donate!

 

 

Similar Threads

  1. Replies: 2
    Last Post: 03-21-2011, 02:25 PM
  2. Replies: 0
    Last Post: 02-17-2011, 02:40 AM
  3. Replies: 0
    Last Post: 02-10-2011, 05:50 AM
  4. Replies: 0
    Last Post: 02-09-2011, 06:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 04:26 PM.
twitter, follow us!