Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 4, 2008, 05:43 AM   #1
luminol74
macrumors member
 
Join Date: Apr 2008
Overriding Mac file permissions in Linux

Hello all,

I'm trying to recover a some data from a LaCie EDMini drive because the caddie went down. There are application solutions out there including R-Studio and Data Recovery II but they are both ~$80 solutions and don't always recover the metadata meaning I'd be renaming hundreds and hundreds of files which isn't going to happen!

Anyway, I'm using a SATA to USB adapter and I loaded up an Ubuntu Live CD to look at the file system and presto it mounted all my files. Brilliant. Only problem is that I had this EDMini in a network with Windows and Mac machines and I've been able to recover all files that were created on Windows but the files that were created on OS X (all my files...) are locked. It tells me I don't have permission to access the files.

Whilst that boosts my confidence in OS X security I do need to bypass those permissions somehow and my knowledge of Linux is poor. I tried sudo cp commands but was getting nowhere. Then decided to create a username and password that was identical to my OS X username and password to see if that worked and it doesn't.

Is anyone familar with this situation or knows how to override OS X file permissions so I can copy the files onto another drive?

Help appreciated, thanks.

Simon
luminol74 is offline   0 Reply With Quote
Old Dec 4, 2008, 06:37 AM   #2
detz
macrumors 65816
 
Join Date: Jun 2007
You might not be able to change them on the drive you might have to move them off first. Then you can use either...

chown -R YOURNAME: FOLDERNAME

which will give your linux user(YOURNAME) ownership of all of the files in FOLDERNAME

Or you can change the permissions on all the files
chmod -R 777 FOLDERNAME

You will have to be sudo for these to work correctly
detz is offline   0 Reply With Quote
Old Dec 4, 2008, 11:23 AM   #3
luminol74
Thread Starter
macrumors member
 
Join Date: Apr 2008
detz I could kiss you! chmod -R 777 has worked an absolute treat. No idea what the command actually means but it's just saved me a thousand files or more. Thanks for the tip!

Simon
luminol74 is offline   0 Reply With Quote
Old Dec 4, 2008, 12:32 PM   #4
brand
macrumors 68040
 
brand's Avatar
 
Join Date: Oct 2006
Location: 127.0.0.1
Quote:
Originally Posted by luminol74 View Post
detz I could kiss you! chmod -R 777 has worked an absolute treat. No idea what the command actually means but it's just saved me a thousand files or more. Thanks for the tip!
Wikipedia's take on CHMOD
brand is offline   0 Reply With Quote
Old Dec 4, 2008, 01:31 PM   #5
macrem
macrumors 65816
 
macrem's Avatar
 
Join Date: Mar 2008
Location: Amsterdam
edit: doe anyone know why the sudo command from Ubuntu didn't work for the OP? I would have guessed it would, especially since chmod worked.
__________________
15" rMBP | 27" iMac | iPhone 5 | iPad Air
macrem is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Mac File Transfers to Linux Mint using Terminal pcfast PowerPC Macs 6 Jan 1, 2014 11:07 AM
Osx file permissions AshMan Mac OS X Server, Xserve, and Networking 1 Sep 21, 2013 10:57 PM
File Sharing: I can't get permissions to work! dmk1974 Mac OS X Server, Xserve, and Networking 2 May 30, 2013 01:09 PM
Question about file permissions in WordPress olup Web Design and Development 2 May 17, 2013 12:32 PM
File Permissions Confusion? 2012Tony2012 iMac 4 Dec 7, 2012 03:34 PM

Forum Jump

All times are GMT -5. The time now is 04:27 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC