I have a ton of files that the 'owner' changed to 'Owner can not be displayed'. They are photos (.jpg's) and they come up as 'invalid image' when I try to open them. If I change the owner of the file to 'Administrator' (or me) and then add 'Everyone' under 'Users and Groups' the image comes back.

I can't figure out how to do this to an entire folder and there are at lease a few hunderd files that this has happened to.

In some cases the entire folder has changed and in others there will be two or three thumbnails displayed and the rest don't show up and display 'invalid image' if I try to open them.

If I select and entire folder and try to add 'Everyone' as a user again it will flash through several fles that are okay and then say 'Access Denied' on the ones that won't open. The only way to regain access is to go in and change ownership and then add Everyone as a user to each individul file. Not liking Windows 7 to much at this point.

I can't imagine having to go through several hundred images like this. This is a new installation of Windows 7. The files are on my old hard drive. I have dozens of folders with hundreds of pictures that display thumbnails and open fine and then a dozen or so folders that display the problem I've described.

I can detail exactly what I'm doing if you think you can help.

Thanks,
Tom

Dani AI

Generated

This is almost always an NTFS ownership/ACL issue after moving an old drive into a new Windows install: Explorer shows "Owner cannot be displayed" when the file's owner SID from the previous install cannot be resolved, and some files in a folder can have different owners so access can be patchy. The GUI owner-edit method suggested by works for a few folders, and was right that bulk tooling is the way to go — on Windows the built-in commands avoid installing extra tools.

A reliable, safe sequence to apply to a whole folder from an elevated command prompt is to take ownership first and then fix the ACLs. Example (run as Administrator and test on a small folder first):

takeown /F "D:\OldDrive\Pictures" /R /D Y

icacls "D:\OldDrive\Pictures" /reset /T
icacls "D:\OldDrive\Pictures" /grant Administrators:F /T
  • takeown makes the current admin the owner for the files/subfolders.
  • icacls /reset clears broken custom ACLs and restores inheritance.
  • icacls /grant Administrators:F gives the Administrators group full control (alternatively grant the specific user or grant read-only to Users if that is preferred).

Precautions and follow-ups: back up the data or test on a copy first; granting Everyone or Full control is a security decision — prefer granting the Administrators group or the specific user account. If files still say "invalid image" after permissions are fixed, run a file-system check (chkdsk) and verify the files are not EFS-encrypted (EFS requires the original user certificate and cannot be fixed by taking ownership). Microsoft references: takeown (https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/takeown) and icacls (https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/icacls).

Recommended Answers

All 4 Replies

Well, with Linux and a bash shell, this would be trivial:

find . -type f -exec chown name.group {} \;
find . -type f -exec chmog ugo+rw {} \;

etc. So, you can install Cygwin (free Linux/Unix environment for Windows) and have these tools available for you. I find they are very useful on Windows systems for these sort of bulk updates.

Member Avatar for Member #932792

Try closing down windows explorer. And then ctrl+shift+ALT-click windows explorer again to open it as admin (make sure you are logged in as admin obviously)
Right click on the folder of files you want access to, go to properties, make sure i the two checkboxes in the tab that opened is unchecked, then go to security tab, edit, and change all the permissions to allowed for all users.

Does this help? Not sure what you have already tried, so lets start here. Tell me if this worked.

Member Avatar for Member #932792

{previous post deleted - ardav}
Woops, Im realy sorry, that post was meant for another thread

Woops, Im realy sorry, that post was meant for another thread

It's okay.

As for the question in the thread, right click the folder, go to "Security" --> Advanced --> Owner tab --> Edit --> Add yourself to the list, click the check box "Replace owner on subcontainers and objects" --> press okay or apply then okay, and then you're done :3

Ask more questions if you need help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.