All files in my PC are stuck on "read only", even as the only admin

7

Windows 7, 32-bit: There is 1 user account in this PC, and that is my account.

What I do is, I right click to a folder and uncheck the read only option, apply, close. After when I reopen the folder's properties I see that it is restored and file is still read only.

What should I do?

sprsr

Posted 2011-01-31T01:22:33.720

Reputation: 209

Could you be looking at a SSD that's reached the end of it's rated life and gone into read-only mode? – Loren Pechtel – 2013-08-01T18:10:56.267

The question is inconsistent, saying you remove readonly from the folder, but then your title is about files. Folders in Win 7 can show in File Explorer as "Readonly" (a black square vs a checkmark means that only some of the files underneath that folder are Readonly) but that doesn't actually mean all the files are Readonly. Pls clarify the question to address 1) What folders are you looking at; 2) How are you seeing the Readonly box (File Explorer, right-click folder & choose Properties ?), and 3) Whether you are checking files or just folders. This type of detail is important. – Debra – 2019-01-16T22:15:33.433

Have you considered opening up process monitor and seeing who's setting the readonly bit? – Billy ONeal – 2011-01-31T01:51:50.783

can you give details?, I am using windows in another language, so I couldn't find the process monitor, do you mean ctrl + alt + del ? – sprsr – 2011-01-31T12:29:11.893

Answers

7

From your question it seems this issue is on folders, and you do not mention any inability to access these files. If this is the case the below should apply to you:

Unlike the Read-only attribute for a file, the Read-only attribute for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer. The Read-only and System attributes is only used by Windows Explorer to determine whether the folder is a special folder, such as a system folder that has its view customized by Windows (for example, My Documents, Favorites, Fonts, Downloaded Program Files), or a folder that you customized by using the Customize tab of the folder's Properties dialog box. As a result, Windows Explorer does not allow you to view or change the Read-only or System attributes of folders. When a folder has the Read-Only attribute set it causes Explorer to request the Desktop.ini of that folder to see if any special folder settings need to be set. It has been seen where if a network share that has a large amount of folders set to Read-only, it can cause Explorer to take longer then what is expected to render the contents of that share while it waits on the retrieval of the Desktop.ini files. The slower the network connectivity to the share the longer this process can take to the point where Explorer may timeout waiting for the data and render nothing or appear to hang.

I have run into the issue you are describing in the past where you uncheck the box and after closing and opening properties again it is still checked. The above is what I found when looking into this issue. Source

Supercereal

Posted 2011-01-31T01:22:33.720

Reputation: 8 643

2

I've spent a lot of time trying to make my folders not read only too. Even talked to my computer support staff and they were unable to resolve it. Guess what! There wasn't anything to fix.

Did Google search and found out that while files restrict changes when it's read only, folders that are read only are read only so different programs know how to treat them (it's a bit technical for me to explain more, since that's all I understand). Kyle's answer has the more technical details about it all.

But the real eye opener was this website which had pictures. Seems that even though the read only box has a little square in it - it isn't read only. Just when the box has a check mark in it, is it read only. So all this time and energy and they weren't even read only and even if they were, it's only important to the programs to know.

Hope this is the case with you and they aren't read only, so you won't have to worry. Cheers! Here's the pictures telling which are and aren't read only.

http://www.sevenforums.com/tutorials/63741-read-only-file-folder-attribute.html

Angel Honey

Posted 2011-01-31T01:22:33.720

Reputation: 29

The link to the site with pictures c/should have been a comment on Kyle's answer. – Joshua Drake – 2015-04-13T14:04:47.080

Please note that a black box, vs. a black checkmark, means that -some- of the files underneath that folder structure are readonly. If all of them were, it would be a black checkmark. This difference (black box vs checkmark) is becoming a standard for Windows selection checkboxes. – Debra – 2019-01-16T22:18:23.570

1

I don't know the reason why, but I recently had an issue where trying to open files in AutoCAD warned that they were read-only. Previously not an issue. The files always opened, but would not allow me to save them with the same file name. But I had not changed any attributes. But turning off the preview pane allows them to open normally without the read-only warning and I can make modifications and save them under the same file name again. Not sure why it matters, but the problem of Read-only went away when the preview pane is not selected.

Dave Filicicchia

Posted 2011-01-31T01:22:33.720

Reputation: 11

You're on the right track for a common cause of this issue. Basically, AutoCAD has to run in order for you to preview files of its type, and AutoCAD locks the file while it has it open. If you look at your task manager while previewing AutoCAD files you'll see the AutoCAD executable running. Adobe Reader does a similar thing. Turning off Preview is an easy way to resolve some of these problems. HOWEVER, what you have posted is more of a comment than a solution. We're glad you found the answer, but please stick to answers in this section until you have the rep necessary to comment. – music2myear – 2019-01-16T16:44:11.737

@Dave Filicicchia , please edit your answer to provide the steps for turning off Preview in Windows 7 (File Explorer, I assume), even if it seems obvious to you. Perhaps remove some of the personal commentary as well & focus on the solution. – Debra – 2019-01-16T22:07:55.190

1

Are you checking files or folder? Windows ignores read-only attributes for folders. If you un-check the read-only checkbox for a folder, it just appears greyed out the next time you open the folder properties. Check the "Cause" section of this KB article: http://support.microsoft.com/kb/326549

jáquer

Posted 2011-01-31T01:22:33.720

Reputation: 825

It is not grayed out, there is a blue squere at read only section, and It remains when I reopen the folder properties. – sprsr – 2011-02-01T16:44:36.967

1

Try using the attrib tool from the command prompt. You can type attrib /? to see usage guidelines.

Try this:

attrib -r -s c:\YourFolder /S /D

-r means remove readonly attribute -s means remove system attribute /S means process files and all subfolders /D means process folders also

Jason

Posted 2011-01-31T01:22:33.720

Reputation: 185

Your methodology is sound, but unfortunately it doesn't resolve the original question, primarily because the files themselves are unlikely to be Readonly (or, at least, only some of them are). Also the Readonly attribute on a folder only applies to the files below it IF they inherit the attribute -- i.e. put a non-readonly file into a readonly folder in Windows, and it normally remains NOT readonly. OTOH if Readonly occurs as a permissioning issue set in the ACL so the user only has "Read" and "Traverse" rights and the rights are inherited, the attrib command will fail. – Debra – 2019-01-16T22:23:52.510

1I just ran into the same issue as the OP. Applying this commandline fix had no effect. – estanford – 2012-08-20T15:43:21.567

0

I had the same issue and now I was messing around and ended up figuring out what my problem was.

  1. Go into the folder properties
  2. Click on advanced on the general tab
  3. Uncheck all options
  4. Then take off the read only attribute and apply

Hope it helps.

Vanilla

Posted 2011-01-31T01:22:33.720

Reputation: 1

This looks like essentially the same solution as jáquer's answer. – fixer1234 – 2016-10-24T08:19:46.210

0

I had a similar issue yesterday, you can try this on the folders in question:

Right click your folder
Select properties
Hit the security tab
Click the Advanced button
Click the Owner tab
Click Edit
Highlight your username
Check "Replace owner on subcontainers and objects" 
Select OK, OK

Then you can go in and check the NTFS permissions under Properties -> Security and and ensure you have full control. This should solve your files being read only.

Dan M.

Posted 2011-01-31T01:22:33.720

Reputation: 1 676

it didn't work, read only section is still checked. Does the "replace owner on subcontainers and objects" checkbox should remain checked ? Because it doesn't stay so. And after I check it and apply, it says something like (I am translating from another language because my windows is not english) If you have taken the ownership of this object not so long ago, you need to close and reopen properties of this object. – sprsr – 2011-02-01T17:20:27.133

Can you open the files in the folder for editing? That is the main question. Because the blue square you speak of is normal, stated in a way below. What exactly are you trying to accomplish that you cannot? – Dan M. – 2011-02-01T17:29:51.253

I am tring to install a cms, which is named magento, and it doesn't pass the configuration step. In the forums I searched it seems to be related with the file permissions and when I looked at the files, I saw that there is blue square in all files. That is what I am after. I am tring the blue square vanish because it may be related for my cms to be installed. – sprsr – 2011-02-01T17:48:13.067

1

I doubt that is really the issue, the blue square. Also check out this thread for proper installation procedures. I think this may have more to do with that than anything else: http://www.magentocommerce.com/boards/viewthread/71211/

– Dan M. – 2011-02-01T18:28:26.393

0

Here is the solution:

The problem isn't that the folder is Read Only. Rather, because your folder was created on a different

installation of Windows you no longer have NTFS security permissions to access (read) the folder.

Correct this by following these steps to take ownership and then grant yourself full access to the folder.

1.Right-click the folder > Properties

2.Security tab > Advanced

3.Click Change to the right of Owner

4.Enter Users (user name you used when installing Windows) into box and click check names then OK

5.Enable the checkbox Replace owner on sub-containers and objects then click Apply

That should fix it at this point item 5, however see below if problem continues:

6.If prompted that You do not have permissions to read... click Yes

7.Completely close out of the Advanced Security Settings dialog

8.Right-click the folder > Properties

9.Security tab > Edit...

10.Add...

11.Enter Users into box and click OK

12.Enable the Full Control checkbox then click OK

P Cleary

Posted 2011-01-31T01:22:33.720

Reputation: 1

Where does the OP mention the fact that disk of even files are from another system? – Dave M – 2015-08-19T12:40:14.610

-1

I found a solution - make sure the preview button is off in the file's folder. The preview button is in the top right corner of the file.

chris

Posted 2011-01-31T01:22:33.720

Reputation: 11

Please read the question again carefully. Your answer does not answer the original question. Preview has nothing to do with ReadOnly. – DavidPostill – 2016-07-16T07:52:44.100