Can't remove read only attribute

0

I have windows 7 and I've installed Oracle and my directory C:\app\jankiewj\product is read only. When I try to remove read only checkbox it ask me for admin permission. I've try to run explorer as administrator also try using attrib as this answer suggest Windows 7 - Cannot remove read-only attribute (running cmd as admin) but with no effect. I can't remove read only attribute.

jcubic

Posted 2015-12-03T08:37:51.290

Reputation: 1 533

What user account is the owner of the directory? What user account is the owner of the parent directory? – TOOGAM – 2015-12-03T08:48:07.870

@TOOGAM how can I check that? – jcubic – 2015-12-03T08:52:29.940

Answers

0

I assume you are a local admin on the machine and that you already went through the article mentioned in the other answer that explains why the read-only box isfilled in the General Tab of the file properties.

However, if this is a directory ownership issue, you can do the following:

  1. If you want to check the ownership of the parent directory and child directories, just run the following command in an elevated command prompt:

icacls C:\ folderpath

  1. To take ownership of the directory, use:

takeown /F c:\ folderpath /D y /R

R is a recurse switch that will help you take ownership of all sub directories as well

  1. Assign full control by utilizing the following command. This will give you full control over the directory:

cacls c:\ folderpath /E /T /C /G "UserName":F

user527345

Posted 2015-12-03T08:37:51.290

Reputation:

Still nothing :( – jcubic – 2015-12-08T14:37:48.363

Does it still ask you for admin credentials after you took ownership and assigned full control ? – None – 2015-12-08T18:53:40.540