Window Vista Hacking (Taking Ownership)
Window Vista Hacking (Taking Ownership)
files have “Trusted Installer” as owner, the assign or grant read+write, traverse or full control permissions to SYSTEM or CREATOR
OWNER user account only. So users must take ownership and grant full access control permissions and rights to themselves if they want to
modify, rename or delete these files or folders. Sometimes, users may need to take ownership and grant full rights to themselves on another
drive or partition, especially on disk newly installed or inserted if they cannot browse the contents from the drive.
To take ownership and grant full control (or read write) permissions of files or folders in Windows Vista, do these steps.
1. In Windows Explorer window, locate the files or folders that you want to take ownership and grant or change full control or other
access permissions.
2. Right click on the file or directory, and then select Properties on the right click menu.
13. Highlight the Administrators or the user who wants the permissions on the object be changed in the “Group or user names” box.
If the user ID or group that you want to manage the permissions for the object doesn’t exist, click on Add button, and type in the
user name or group name desired into the Enter object names to select box, and finish off by clicking on OK.
14. In the Permissions for Administrators box below (or any other user name or group name you chose), click on “Full Control”
under the “Allow” column to assign full access rights control permissions to Administrators group.
15. Click “OK” twice when done.
Users can now do whatever you like to the files or directories processed as above. If you feel that above process is a little too long, and
prefer to use command line to perform above process, then open an elevated command prompt as administrator, and issues the following
commands:
For Files:
takeown /f file_name /d y
icacls file_name /grant administrators:F
takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t
Replace file_name or directory_name with actual file name or folder name, with path when applicable. The first command will take
ownership of the file or folder specified, and the second command will grant full control permissions to administrators user group. Note that
when using command for folders, to command will run recursively. To prevent the task been perform recursively, remove the “/r” and “/t”
switch.
Above two commands have been scripted in Windows command shell batch script that easily perform the task of taking ownership and grant
full control permissions to Administrators user group by typing simple command. Alternatively, users can add “Take Control Of” option to
right click menu so that the next time you need to take control of a file with full control permissions, it’s just a one click task.