Do not fear, it's not the end of the world !
There are times you may faced that you can't access files even you are logged in as an Administrator in Windows for some reasons.
From Windows Vista, it has been included a command-line tool call takeown.exe to allow an administrator to again access to a file which was denied. It allows administrator to take ownership of the file. Go to Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as Administrator.
Syntax:
>takeown /f [file-path]
/f - to specify file name or directory name
/a - gives ownership to administrator group
More to learn about this type this:
>takeown /?
If it is success, you can see following message:
Then to assign the Administrators group Full Control Permissions for the file or folder, use icacls command. Refer my post about ICACLS command.
Appreciate your comments and thoughts. Good Luck . . !!
Read more
Hi Fellows!
Have you ever experienced no permission to access a directory, which is very impotent to you when you are the only administrator account?
Message like this,
Then this message,
When you go to security tab, still not allows to changing the permission of that particular directory.
Here is solution, you can change NTFS file and folder permissions using magic command called "icacls".
Step1:
Open command prompt and type following command to see the permissions list (discretionary access control lists - DACLs)
icacls [folder or filepath]
or
icacls [folderpath] *
Step2:
To remove all inherit user permissions enter:
icacls [folder or filepath] /inheritance:r
Step3:
To allow permissions to user, enter following both commands :
icacls [folder or filepath] /grant administrators:(CI)(OI)F
icacls [folder or filepath]> /grant users:(CI)(OI)R
Step4:
Now you should be able to change the directory permission. Furthermore, if you want to remove all inherit user permissions of files in particular directory use following command.
icacls [folder or filepath]\* /inheritance:r
Let me know how it went . . Cheers !!
Read more