LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2006, 09:13 AM   #1
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Rep: Reputation: 15
Trying to change file permissions


First, I appoligize if this is the incorrect forum for this question. It seemed like the closest one to my problem. Now onto the problem.

One of my customers recently broght me a external drive (He was using on a mac) that his mac would no longer mount the drive. He is a graphic designer and has ALOT of data on the drive that would be devestating for him to loose. We tried to mount the drive on a few differnt macs and PC's (running XP) and nothing would see it. Linux to the resuce! I boot to my SUSE 10.1 partition and it mounted to problem. I was very happy until I tried to copy the data. I get a file permision error. After looking at the permisions basicly the only person that has access to do anything other then open the files is the owner, who of couse isnt present on my linux partition.

So my question is this. Is there a way that I can change the file permissions that will allow me to copy the data to another drive? Unfortuanetly I am not terribly fluent in linux. I put it on my laptop so I could begin learning it but havent gotten very far. Any help would be greatly appericated.

Thanks all.
 
Old 09-22-2006, 09:16 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
I'm going to have to ask the obvious as you didn't specify... but did you try and copy the files as root? is the HD mounted r/w?

If not, you want to switch to root, and chmod 777 the files you want to copy.. then copy them.
(see 'man chmod').

Last edited by rizhun; 09-22-2006 at 09:24 AM.
 
Old 09-22-2006, 10:01 AM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I hate to disagree. I really really do. Really. But this is what I would do.

If the Mac is running the new Mac OS X, the one based on BSD Unix, I would do this.

1) Log on as root.
2) Create a mount point. (/problem)
3) Mount the disk read only and with GID=100. This will mount the disk partition as being owned by the users group. Then you can use a normal user account to access the files.
4) Log on as a normal user and try to copy the files to another disk.
If the Mac disk is mapped to /dev/sda1 then I would do this.
Code:
root> mkdir /problem
root> mount -o ro,gid=100 /dev/sda1 /problem
root> su - normaluser
$ ls /problem
$ cp -R /problem <somewhere-else>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root cannot change file permissions. aje Slackware 3 08-12-2005 02:27 AM
unable to change file permissions!! dcdbutler Linux - General 11 02-06-2005 09:58 AM
chmod won't change the file permissions midtown266 Linux - Newbie 12 11-28-2004 07:46 PM
Root can't change file permissions!!!!!! j_pooria Fedora 1 08-19-2004 03:29 AM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration