etherial: an idealized black vortex on a red field (Default)
[personal profile] etherial
I've just got my new computer up and running. Pictures as soon as I have it in its final working place (macMinis are so awesome). Quick question, though. When we backed up the old computer, my brother set the data to "No Access". This is supremely annoying, because I have to manually change every folder to Read/Write in order to transfer the data. Is there any way in OS X (or *NIX) to reset it all to R&W?

from the command prompt

Date: 2005-06-23 08:51 am (UTC)
From: [identity profile] stillking.livejournal.com

chmod -R u+rw /topmost_directory

or

chmod -R u+rwx /topmost_directory

or

chmod -R u+rwx g+rx o+r /topmost_directory

depending on desired permissions... doubtless you get the picture.

-- sven

Re: from the command prompt

Date: 2005-06-23 09:37 am (UTC)
From: [identity profile] etherial.livejournal.com
So if I wanted to reset the permissions on a particular (non-system) drive, it would be?

Re: from the command prompt

Date: 2005-06-23 10:03 am (UTC)
From: [identity profile] qedrakmar.livejournal.com
the same thing only at the mount point.

Re: from the command prompt

Date: 2005-06-23 10:05 am (UTC)
From: [identity profile] etherial.livejournal.com
I've never done anything in UNIX that involved multiple drives. You'll have to be a lot more specific.

Re: from the command prompt

Date: 2005-06-23 10:17 am (UTC)
From: [identity profile] qedrakmar.livejournal.com
Well, I usually start with just 'mount' or sometimes 'df' to see what's mounted where. Each drive partition is a system device. I expect you'll see things like /dev/hda0 where a is the physical drive and 0 is the partition number. It might be sda0 or hdb or some other variant, but you should be able to decipher it. So, you've figured out what the physical drive is, you can use the above commands to see that it's mount on /mount or /monkey or /thisdrive or whatever. 'df' is good here because it'll also tell you the partition sizes, to check against.

Now, just run the command as 'chmod -R u+rwx /mount'

Re: from the command prompt

Date: 2005-06-23 10:21 am (UTC)
From: [identity profile] etherial.livejournal.com
I received about 1000 Permission Denied responses.

Re: from the command prompt

Date: 2005-06-23 10:34 am (UTC)
From: [identity profile] qedrakmar.livejournal.com
Are you logged in as root? Is root even enabled?

Re: from the command prompt

Date: 2005-06-23 10:40 am (UTC)
From: [identity profile] qedrakmar.livejournal.com
Do so. If you don't really care about what users can see the drive change that chmod command from u+ to a+ (from only the user to all). Run as root, that should make it readable, no matter what.

Re: from the command prompt

Date: 2005-06-23 11:09 am (UTC)
From: [identity profile] etherial.livejournal.com
sudo chmod worked.

October 2018

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags