Every file or folder in Windows 7 & Vista is protected and to get access to have to get the ownership right for that. The owner controls are those permissions which are are set on the object for which permits are granted. If an administrator needs to edit or change the permission on any file or folder, then the Archive property should be taken. The owner can always change permissions on an object, even when denied all access to the object. To take ownership of files, right click and select Properties.
Solution 1
The Access Denied message in Vista with us every time we try to do something with a system file. On the file system users do not have permits, the owner of those files is the user TrustedInstaller (TrustedInstaller is service Windows Installer modules, under which programs are installed on Windows.).
This security measure prevents a user overwrite, delete, or replace Windows system files. The solution to handling these files is to take possession of them and, as owners, assign permissions to your user.Change the permissions of the Windows system files can cause problems
With Windows Explorer.
To take ownership of a file:
- Right click on the file (or folder) Properties
- Security Tab
- Advanced button
- Owner Tab
- Edit button. May ask us to privilege elevation
- Select or add the user or group> OK button.
- Give permissions to our user / user group:
- We return to the Security Tab> Edit button
- We seek our user or group and select permissions. If not we'll add it with the Add button
- This we must do for each file you want that our user has permissions.
By command line.
We have 2 commands that help us to take ownership of a file and set permissions. takeown is the command for that. Used to take ownership of a file, formatted takeown /f filename. For example, to take possession of the file explorer.exe. takeown /fc:\windows\explorer.exe. Displays and grant privileges to a user or group on a file. icacls Path_And_File_Name /GRANT USER:F. For example to give full control permissions to the administrator user on the file explorer.exe: icacls C:\windows\explorer.exe /grant administrator:F. Both should run in a cmd with elevated privileges.
Bookmarks