Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Change Permissions Of All Files/Folders At Once?

I changed my User Name by deleting my old Account and creating this new one and now my thousands of Files and Folders have to each have their Ownership be manually switched from "unknown" to my new Name before being rewritable (and sometimes even just readable).

iBook, Mac OS X (10.4.11)

Posted on May 1, 2011 9:36 PM

Reply
Question marked as Best reply

Posted on Mar 20, 2017 3:04 AM

Although several possbile answers were given I have one solution extra


For me the standard Finder method with "apply to enclosed items" did not answer my needs.
Neither did the Terminal method (I had to write too many lines)


Because I noticed that the Finder - apply to enclosed items- did not work for all (sub)folders and files.
I needed another solution for many files and folders at once.


Accidentally I found the solution that worked for me;


I created new folders and copied or moved all content from the protected folder into the new one.
Because some subfolders or files were protected I had to give the admin password.
But only just once and not per file or folder.

Afterwards, all folders, subfolders and files were readable and accessible again.


posted on march 20th 2017

15 replies
Question marked as Best reply

Mar 20, 2017 3:04 AM in response to Sheden

Although several possbile answers were given I have one solution extra


For me the standard Finder method with "apply to enclosed items" did not answer my needs.
Neither did the Terminal method (I had to write too many lines)


Because I noticed that the Finder - apply to enclosed items- did not work for all (sub)folders and files.
I needed another solution for many files and folders at once.


Accidentally I found the solution that worked for me;


I created new folders and copied or moved all content from the protected folder into the new one.
Because some subfolders or files were protected I had to give the admin password.
But only just once and not per file or folder.

Afterwards, all folders, subfolders and files were readable and accessible again.


posted on march 20th 2017

May 1, 2011 9:45 PM in response to Sheden

Hi


Are you talking about stuff in your Documents folder? If so, then you can run this command in Terminal (Applications -> Utilities).


chown username:staff ~/Documents/*

(Replace username with your short-name - the name of your home folder)


But you can't go chown username:staff ~/* because there are some things in your home folder, that have different permissions.



😀



Taylor

May 13, 2011 8:38 AM in response to TaylorN90

Not just Documents; Pictures and everything else I've used has been affected too. However, Documents would be a big help, so I tried that command in Terminal and this was my result


Last login: Fri Apr 29 20:01:15 on console

Welcome to Darwin!

sheri:~ Sheden$ chown sheden:staff ~/Documents/*

chown: sheden: Invalid argument

sheri:~ Sheden$

May 13, 2011 4:17 PM in response to Sheden

Sheden wrote:


Not just Documents; Pictures and everything else I've used has been affected too. However, Documents would be a big help, so I tried that command in Terminal and this was my result


Last login: Fri Apr 29 20:01:15 on console

Welcome to Darwin!

sheri:~ Sheden$ chown sheden:staff ~/Documents/*

chown: sheden: Invalid argument

sheri:~ Sheden$

The reason you are seeing the "Invalid argument" is because you have not entered your username correctly.


UNIX interprets everything exactly how it is writtent (capitals etc)


So you need to type chown Sheden:staff ~/Documents/*


😀

May 15, 2011 12:43 PM in response to TaylorN90

Last login: Sun May 1 21:49:39 on ttyp1

Welcome to Darwin!

sheri:~ Sheden$ chown Sheden:staff ~/Documents/*

chown: /Users/Sheden/Documents/AppleWorks User Data: Operation not permitted

chown: /Users/Sheden/Documents/Information: Operation not permitted

chown: /Users/Sheden/Documents/Libertarianism: Operation not permitted

chown: /Users/Sheden/Documents/Microsoft User Data: Operation not permitted

chown: /Users/Sheden/Documents/Miscellanious: Operation not permitted

chown: /Users/Sheden/Documents/Quotes: Operation not permitted

sheri:~ Sheden$


This happened to all my Folders in my Documents. My Documents and these Folders are fine, but it's many Folders within Folders within Folders... inside these, that need to be corrected.

Dec 27, 2014 10:00 AM in response to BDAqua

The final solution that worked for me in Yosemite OS X ver. 10.10.1 (thanks to old comm guy):


  1. In Finder, rt click on the damaged folder and choose "Get Info"
  2. In the pop up Info window:
    • At the bottom corner, unlock Sharing & Permissions
    • The following permissions should be set:
      • username set to Read & Write (if this is missing, add it using the + icon at the bottom left corner)
      • staff set to Read only
      • everyone set to Read only
    • Then and only then, click the gear icon at the bottom left corner near the + - icons.

      choose: Apply to enclosed items...

    • At the bottom corner, lock Sharing & Permissions

Change Permissions Of All Files/Folders At Once?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.