Every so often I run into a file that I need to take ownership of. I normally use cacls
for changing ntfs permissions, but it doesn't seem to do ownership. Under *nix I would run something like chown me:me <file>
. Is there a windows equivalent to chown
?
Windows – How to take ownership of files from the command line
access-control-listcommand-line-interfacentfswindowswindows-xp
Related Topic
- How to Workaround NTFS Move/Copy Design Flaw
- Windows – What’s the command-line utility in Windows to do a reverse DNS look-up
- How to delete a file with a space at end of the name and hidden attributes
- Is it possible to disable a scheduled task from the command line in Windows XP
- Windows – How to grant somebody “Take ownership” privilege
Best Answer
subinacl is a Windows sysadmin's power tool for doing everything to do with ownership and ACLs. You can change the ownership to anyone other than just you (you can't do this with the GUI).
This lets you set the permission to any user you like, without having to be an administrator (as I believe takeown.exe requires).