Chapter 46. How to Take Ownership of an Object

Taking ownership of an object is easy when the operating system provides an interactive security editor. For example, to take ownership of a file all you need to do is bring up the security properties for it and press the Advanced button (as shown in Item 43). Then click the Owner tab and you'll see a property page that looks like Figure 46.1.

Getting ready to take ownership of a file

Figure 46.1. Getting ready to take ownership of a file

This user interface is pretty smart. Not only does it show you who currently owns the file, but, if you have permission to take ownership of the file either because you've been granted WRITE_OWNER permission ...

Get The .NET Developer's Guide to Windows Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.