Works on: Windows 10 | Windows 8.1 | Windows 8 | Windows 7 | Windows 2012 SHA1 Hash: 6407a5aa734426c4c99c7e0e3d4266ebc5e8834a Size: 35.05 KB File Format: zip
Rating: 2.130434782
out of 5
based on 23 user ratings
Publisher Website: External Link Downloads: 327 License: Free
CHOWN is a free software by Alexander Frink and works on Windows 10, Windows 8.1, Windows 8, Windows 7, Windows 2012.
You can download CHOWN which is 35.05 KB in size and belongs to the software category File Management. CHOWN was released on 2009-12-04 and last updated on our database on 2017-02-25 and is currently at version 1.1.
Thank you for downloading from SoftPaz! Your download should start any moment now. It would be great if you could rate and share:
Rate this software:
Share in your network:
CHOWN Description
The CHOWN application was designed to be a small command line tool that demonstrates that it is possible to assign a new owner to a file, even if Microsoft asserts that this is impossible. Not the first implementation of such a program, but source is included, so you may understand how this works.
To set a new owner of a file, only ordinary Win32 API calls are needed. All you have to do is:
- enable the Backup, Restore and Take Ownership privileges (with AdjustTokenPrivileges()). These are usually granted to Administrators. I also enable the Bypass Traverse Checking privilege, but I have not yet fully investigated if this is really necessary.
- find the SID for the new owner with GetAccountSid()
- create an empty Security Descriptor with InitializeSecurityDescriptor()
- fill the owner of the Security Descriptor with SetSecurityDescriptorOwner(), ignore group, DACL and SACL
- apply this SD to the file you want to modify with SetFileSecurity(szCurrentFile,(SECURITY_INFORMATION)(OWNER_SECURITY_INFORMATION),...)