assigning ownership of files and folders???
-
Hi All, does anyone know how to assign ownership of files and folders? i have the code to take ownership myself, but can't figure out how to assign ownership to someone else - but i can in the GUI(Vista)!! There are other 3rd party apps which can do it (setowner.exe) but i wanted to build my own so i can have extra functionality. i have found this article: "One of the security constraints of NTFS/NT is that you are only allowed to set the owner of a file to yourself (e.g. "take ownership") or to the "Administrators" group. However, there is a "side entrance" whereby you can assign any arbitrary user as the owner, even if they're not an administrator. This is a privilege that is *granted* to administrators and backup operators, but NOT *enabled* by default. So, how do you enable this? Unfortunately there is no native .NET way to do this" so my question is, does someone know how to make C# do this? Many Thanks, Phil