I have to share a fairly large folder, with dozens of subfolders and hundreds, maybe even thousands of graphics files. Unfortunately I keep finding myself unable to do so because of random files scattered within the subfolders that have no owner. (I’d love to know how that might have happened, but that’ll have to wait for another day)
Here’s the scenario. (in Dolphin) I right click on the folder, then on Properties, then on the Permissions tab. I check the “Apply changes to all subfolders and their contents”. I then go to the share tab and click on “share this folder in the local network”. So far, so good. This is the procedure that normally works fine for setting up these quicky shares need for short term use, however this time when I click OK I get an error message “Access denied to /home/username/folder/subfolder/filename”.
So, I go find the file, right click on it, then on Properties and on the Permissions tab. Under Ownership I find “User: nobody, Group: nobody”. At this point it’s no problem to change the ownership of the file. When I then retry setting up the share I get the same problem with another random file listed. If gone through this several times already.
I’ve checked and found that most of the files in these folders are fine, but there are enough with no owners that finding them all one by one by waiting for the error to show up is going to drive me nuts.
So here’s my question. Is there a simple way to locate and change the ownership of all the files in a folder and its subfolders that are presently without owner assigned?