Resolved How to change the UID of files?

Discussion in 'MacBook Pro' started by AppleMacFinder, Apr 30, 2012.

  1. AppleMacFinder, Apr 30, 2012
    Last edited: May 1, 2012

    AppleMacFinder macrumors 6502a

    AppleMacFinder

    Joined:
    Dec 7, 2009
    #1
    "Macintosh HD" partition got partially corrupted, and Disk Utility cannot repair it. :(
    A lot of files are still in good condition, I want to backup them using Ubuntu LiveCD.
    But there is a problem: I don't have permission to access the files, because default ubuntu UID and
    mac files UID do not match. And I cannot change the ubuntu UID in LiveCD mode.
    So, I must change the UID of Mac files to ubuntu UID.
    Please tell me, how to do it?
     
  2. AppleMacFinder thread starter macrumors 6502a

    AppleMacFinder

    Joined:
    Dec 7, 2009
    #3
    Most links are about changing user's UID.
    I can't change the user's UID from Ubuntu LiveCD,
    so I need to change the UID of files instead.
    But I don't know how to do it! :(
     
  3. AppleMacFinder thread starter macrumors 6502a

    AppleMacFinder

    Joined:
    Dec 7, 2009
    #4
    I have solved the problem using the following steps:
    1) open terminal and type sudo passwd root
    2) enter new password for root
    3) logout (without shutdown) and login as root
    After that, you will be able to access files of other users with a different UID. :rolleyes:
     

Share This Page