PERMISSION HELP ON MAC

Asked by UnixGKU-22

i have a mac usb'd on my ubuntu . I have the documents folders locked because
apparently ubuntu keeps permissions the same when it loads a MAC HD. I can not change permission terminal using chmod - i guess i need to mount the harddrive a certain way because its locked - thats why its 501 username and 501 directory. i am a bit new to this sorry for not explaining well
drwx------ 1 501 501 25 2007-09-05 19:11 Documents
-rw-r--r-- 1 501 501 6.1K 2007-08-18 05:02 .DS_Store
drwxr-xr-x 1 501 501 3 2007-08-11 17:58 .dwa_store
drwx------ 1 501 501 32 2007-09-05 23:39 Library
drwx------ 1 501 501 3 2007-04-22 00:37 Movies
drwx------ 1 501 501 3 2007-04-22 00:37 Music
drwx------ 1 501 501 4 2007-04-22 00:37 Pictures
drwxr-xr-x 1 501 501 4 2007-04-22 00:37 Public
lrwxr-xr-x 1 root 501 61 2007-04-22 00:26 Send Registration -> /Users/yewandeodia/Library/Assistants/Send Registration.setup
drwxr-xr-x 1 501 501 5 2007-04-22 00:37 Sites
drwx------ 1 501 501 10 2007-09-06 17:33 .Trash
ubuntu@ubuntu:/media/Macintosh HD/Users/yewandeodia$ sudo chmod 777 Documents/
chmod: changing permissions of `Documents/': Read-only file system

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Ryan Maki
Solved:
Last query:
Last reply:
Revision history for this message
Best Ryan Maki (ryan.maki) said :
#1

The simplest workaround is to perform the chmod command from the Mac, and Ubuntu will honor the permissions. Otherwise you will need to mount the file system as read-write, *which may not be safe to do with an HFS+ partition.* This is why it's mounted read-only.

When booted into the Mac you can "sudo chmod 770 Documents Movies Music Pictures". Then reboot the machine into Ubuntu. Create a group with ID 501, in your case it would be named 'yewandeodia' to match the MacOS username. Once you have created this group, add whichever users should have access to those files the new 'yewandeodia' group. Log out and back in to recognize the new permissions. This way you can read the files on your Mac drive. I currently use this solution to share my Mac music collection with Ubuntu.

If you would like to save the files, I would recommend keeping those files on a USB drive formatted with FAT32.

Revision history for this message
UnixGKU-22 (amerdani) said :
#2

yes thank you

i resolved the case by going into root because sudo limited my access. changed permissions and i got he files onto a usb.

I appreciate the help