Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How to change permissions on locked Mac files

  1. #1
    Join Date
    Jan 2012
    Beans
    104

    How to change permissions on locked Mac files

    Hola people, I used to use Macs, although gave up after various Hardware failures, however there are still a lot of personal files on an external back-up Time Machine, as well as the actual Hard Drive from one of the dead Macbooks, which I would like to Format and sell (we lost a LOT of money with Mac). I would like to know the commands to change ownership and read/write permissions. I imagine it is some kind of chmod and chown commands? I can currently access and read 'most' of the files. One last thing, the name of one of the Partitions has a space in it. What happens there? Any help would be great. Thanks in advance.

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to change permissions on locked Mac files

    as i know (dont have/had MAC) it use the linux commands:

    be root: sudo / sudo -i / ...
    set the user (you) to be admin: check the users & groups settings, user need to be added to admin group and sudo group

    and now, the rough way: if you dont care about the data (nothing to backup), then formatting the hdd(s) or some partition(s) is the easiest way. I dont know the special tools on MAC to do multiple erases at once (writing 0 several times over all the support to make recovery impossible) . But if you have an ubuntu installed, then you can use nwipe for example (from an usb stick or other).

  3. #3
    Join Date
    Jan 2012
    Beans
    104

    Re: How to change permissions on locked Mac files

    I think I must be a bit thick. You lost me already. I know how to enter root. i.e. sudo -i "set the user (you) to be admin: check the users & groups settings, user need to be added to admin group and sudo group" ?????????????????????????????????????????????????? ????????????????????? I'm lost.

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: How to change permissions on locked Mac files

    The Time Machine backup will be formatted with the journalled version of HFS+ which you can access read-only from Ubuntu, which is why you won't be able to change ownership and permissions while the files are still on that drive. (There is a way of force-mounting it read-write from Ubuntu, but not something I would advise, at least until you've backed it up.) Added to which the owner will probably be UID=501 for your Mac files, whereas the UID of the Ubuntu account you are working from is probably 1000. Which is why you see a padlock on some of the files/folders, depending on what the specific permissions are.

    If you have access to a Mac machine, you can change the permissions of the padlocked files from the MacOS finder. If not, one way round this is to use a file manager in Ubuntu with root privileges to copy to another drive or partition. If you are copying to a ext3/4 filesystem you would then need to run recursive "sudo chown" and "sudo chmod" on everything you've copied to get ownership and permissions right. But a neat way of side-stepping the ownership/permissions issue is to copy to a Windows filesystem, either NTFS or FAT32, NTFS to be preferred. By doing this you lose the ownership and permissions from the HFS+ filesystem and inherit ownership/permissions from the mount options. Plug in an external HD formatted NTFS, for example, and it will be mounted for you. After copying everything to the NTFS filesystem, you can then copy it all to wherever you want without any special manipulation.

    So - my preferred option:

    • Plug the time machine drive in, let it be automounted, and then close the Nautilus window that has just opened.
    • Run this to open a root Nautilus:
      Code:
      gksudo nautilus
      Navigate to where your HFS+ filesystem is mounted, somewhere in /media. To make it slightly easier, you could run:
      Code:
      gksudo nautilus /media
    • Plug in a NTFS-formatted drive, let it be automounted and leave the new nautilus window open.
    • Drag and drop your folders and files from the HFS+ filesystem to the NTFS one. You now have all your stuff on the NTFS fileystem and available whenever you want.


    If you use this NTFS/FAT32 trick, you don't need to worry about any spaces in any filename or folder name, because you'll be using drag and drop in the GUI.

    Caveats: Both NTFS and FAT32 don't allow some characters in filenames and may error with some files. FAT32 has a maximum 4GB for filesize.
    Ubuntu 15.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  5. #5
    Join Date
    Jan 2012
    Beans
    104

    Re: How to change permissions on locked Mac files

    Hi Coffecat, tried what you said via Nautilus and NTFS but unfortunately Permission is still denied. Perhaps I need to try and find a friendly soul with a Mac that isn't broken?

  6. #6
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: How to change permissions on locked Mac files

    Where is permission denied? When you try to access files on the Time Machine backup or when you try to write to the NTFS filesystem? More details and we might be able to figure this out.
    Ubuntu 15.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  7. #7
    Join Date
    Jan 2012
    Beans
    104

    Re: How to change permissions on locked Mac files

    WTF is it with UF that ALL of my posts now come out in one bulk? As if written by a child? Hello again, "Permission Denied" after I drag the item into NTFS. Although even after opening via 'gksudo nautilus', the folder for the Mac drive appears with a padlock. I can access most files by right clicking and selecting "open as administrator" One last thing, after entering 'gksudo nautilus /media' it just hangs on,'Initializing nautilus-image-converter extension' ? Hope that helps.

  8. #8
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: How to change permissions on locked Mac files

    Quote Originally Posted by Gazucha View Post
    ALL of my posts now come out in one bulk? As if written by a child? Hello again, "Permission Denied"
    It's nothing to do with the forum, but probably something to do with your browser settings. I really wish I knew. People bring this up occasionally in Forum Feedback & Help and then never bother to post again when members suggest things to try. All I can say is that the forum has never replaced " with &quot for me, or put fragments of html code in my posts. Have a look at your javascript settings, or no script if you have it installed.

    Quote Originally Posted by Gazucha View Post
    One last thing, after entering 'gksudo nautilus /media' it just hangs on,'Initializing nautilus-image-converter extension' ? Hope that helps.
    Which version of Ubuntu are you running? nautilus-image-converter is for gnome2 based desktops - it doesn't work with gnome3 and it looks as though it is interfering with opening nautilus. Ubuntu version 11.10 and later are based on gnome3.
    Ubuntu 15.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  9. #9
    Join Date
    Jan 2012
    Beans
    104

    Re: How to change permissions on locked Mac files

    No prob's I'll check the browser settings... There is a spare hard drive and install DVD's of earlier Ubuntu's. I'm on 12.04. Give me some time and I'll set-up a disk with 11.04 or 11.10 and try again. Thanks for your input.

  10. #10
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: How to change permissions on locked Mac files

    Quote Originally Posted by Gazucha View Post
    Give me some time and I'll set-up a disk with 11.04 or 11.10 and try again.
    Before you do that, or alternatively...

    Quote Originally Posted by Gazucha View Post
    I'm on 12.04.
    It's just possible that nautilus-image-converter being a gnome2 applet is the cause of your nautilus problems in 12.04. Try uninstalling it, and then try my suggestions again for copying HFS+ -> NTFS.

    By the way, 11.04 uses gnome2 libraries, 11.10 uses gnome3 libraries.

    OT hint - if you want the gnome3 equivalent of nautilus-image-converter in 12.04, you need the package nautilus-image-manipulator.
    Ubuntu 15.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

Page 1 of 2 12 LastLast

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
  •