Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Set Read/Write permissions on all files/folders in Home folder

Set Read/Write permissions on all files/folders in Home folder
Thread Tools
Junior Member
Join Date: Mar 2003
Location: Chester, UK
Status: Offline
Reply With Quote
Feb 24, 2004, 05:02 PM
 
Hi,

I've just moved back to Mac with an iBook, and i've copied stuff that I backed up on CDs from my PC back into my Home folder on my iBook. Because it was backed up to CD, all of the files seem to have become Read Only and it's annoying having to keeping to set permissions to Read/Write. I've tried selecting all the folders in my Home folder and changing the permissions but it doesn't take effect on the files in the folders.

Is there a command I can type at Terminal to set the permissions on all the files in my Home folder?

Cheers,
Nick
     
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
Feb 24, 2004, 05:08 PM
 
Under "Get Info" on your Users folder, you can apply the same permissions to every item contained in the selected folder or disk, by clicking "Apply to enclosed items"...
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Feb 24, 2004, 06:22 PM
 
chmod -R u+rw ~

should do the trick. The "Apply to enclosed items" option in the Info window of the Finder is broken in Panther (at least up to 10.3.2).

btw, welcome back
     
Senior User
Join Date: Sep 2000
Location: Shallow Alto, CA
Status: Offline
Reply With Quote
Feb 24, 2004, 07:50 PM
 
In case you are no longer the owner of the files you might also need to change owner

chown -R username ~ (replace username with your short username)
     
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status: Offline
Reply With Quote
Feb 25, 2004, 02:31 AM
 
When I brought my home directory over to my PB from my older iBook, I opened Terminal and did the following:

sudo chown -R username /Users/username
sudo chgrp -R groupname /Users/username
sudo chmod -R 775 /Users/username

Where

username = your short name
groupname = a group such as 'admin' or 'staff'

7 = RWX
5 = RX
0 = No access
     
nickday  (op)
Junior Member
Join Date: Mar 2003
Location: Chester, UK
Status: Offline
Reply With Quote
Feb 25, 2004, 10:44 AM
 
Thanks for your replies, "chmod -R u+rw ~" worked fine.

Cheers,
Nick
     
Mac Elite
Join Date: Jan 2003
Location: suburban Chicago
Status: Offline
Reply With Quote
Feb 25, 2004, 04:54 PM
 
I have a related issue -- I'm trying to be able to get into my desktop's home folder (where all my documents are -- from my PB. I managed to get TO the dekstop from the laptop (that doesn't work so well in Panther... certainly not as easily as it Jaguar!) -- but it tells me my home folder is off limits because I don't have permission.

When I'm down here -- it says that that folder has read and write priveleges for everything, so it seems to me I should be able to access it from a different computer, but I cannot get to it from the PB. I can't change anything on the users folder in genertal -- everything is grayed out.

So -- I don't know what the commands written above mean -- what do they mean and what will they do? And does anyone else have any suggestions? It was always very convenient to be able to get to one computer from the other. But Panther has changed all that...

Thanks.
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Feb 25, 2004, 05:46 PM
 
Originally posted by bbales:
I have a related issue -- I'm trying to be able to get into my desktop's home folder (where all my documents are -- from my PB. I managed to get TO the dekstop from the laptop (that doesn't work so well in Panther... certainly not as easily as it Jaguar!) -- but it tells me my home folder is off limits because I don't have permission.

When I'm down here -- it says that that folder has read and write priveleges for everything, so it seems to me I should be able to access it from a different computer, but I cannot get to it from the PB. I can't change anything on the users folder in genertal -- everything is grayed out.

So -- I don't know what the commands written above mean -- what do they mean and what will they do? And does anyone else have any suggestions? It was always very convenient to be able to get to one computer from the other. But Panther has changed all that...

Thanks.
First don't use the Network icon in the sidebar to connect (it's broken in Panther, hopefully fixed with 10.3.3 when it's released). Make sure Personal File Sharing is enabled in the Sharing Prefs on your desktop computer.
To connect, use command-K in the finder, and enter the rendez-vous name of your desktop computer in the server address field. It should read something like :

afp://firstname-lastnames-computer.local

Enter the login/password required to connect on the desktop computer, then select your home directory, and click connect... it should work.
(you can check your rendez-vous name in the Sharing System Preferences, next to the Edit button in the small text). Check that your PowerBook and your Desktop computer have different rendez-vous names.

chmod is a command to change permissions of files/folders

-R means recursive (apply to all enclosed files/folders)
u means change user permissions
+ means set (- for unset)
rw means read/write
and ~ means your home directory

use "man chmod" for more info in terminal...
(Last edited by pat++; Feb 25, 2004 at 06:01 PM. )
     
Mac Elite
Join Date: Jan 2003
Location: suburban Chicago
Status: Offline
Reply With Quote
Feb 26, 2004, 01:16 PM
 
thanks for the info. Unfortunately, I STILL can't get into my home folder from my PB. Is any restarting involved? Are there any tricks I'm missing?

Thanks for the info and the help.
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Feb 26, 2004, 02:21 PM
 
Originally posted by bbales:
thanks for the info. Unfortunately, I STILL can't get into my home folder from my PB. Is any restarting involved? Are there any tricks I'm missing?

Thanks for the info and the help.
Weird... What is the exact error message? do you manage to connect? and then cannot go in any folder? or cannot connect at all? does it work the other way around (from desktop to PB)? Try to create a new user on the desktop computer and see if it works... just to be sure it's not a problem with the setup of your existing user...
     
Mac Elite
Join Date: Jan 2003
Location: suburban Chicago
Status: Offline
Reply With Quote
Feb 26, 2004, 02:30 PM
 
Hi -- By using the apple-K feature I've been able to see my desktop from my laptop. (And half thee time that doesn't work either! It's an alias that disappears. But for whatever reason, recently this has worked.)

HOWEVER -- when I navigate to my hard drive, and the users folder, my folder has a little red circle with a minus sign in it. If I click on it, it tells me I don't have sufficient priveleges. I can get into the shared folder. I had created a "tester" identity and I can't get into that, either.

I haven't tried to see my laptop from my desktop, but will later on.
     
Mac Elite
Join Date: Jan 2003
Location: suburban Chicago
Status: Offline
Reply With Quote
Feb 26, 2004, 03:00 PM
 
I have no troublegetting into my laptop from my desktop. And there are 4 users set up on the powerbook! That makes me wonder if I am not signed in properly on the desktop. Maybe my machine is confused as to my identity. Can't do it now, but later I'll try logging off and then on again.

I hope to get this fixed, as it was extremely convenient for moving files from one machine to the other.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:55 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2