Security descriptor


Security descriptors are data structures of security information for securable Windows objects, that is objects that can be identified by a unique name. Security descriptors can be associated with any named objects, including files, folders, shares, registry keys, processes, threads, named pipes, services, job objects and other resources.
Security descriptors contain discretionary access control lists that contain access control entries that grant and deny access to trustees such as users or groups. They also contain a system access control list that control auditing of object access. ACEs may be explicitly applied to an object or inherited from a parent object. The order of ACEs in an ACL is important, with access denied ACEs appearing higher in the order than ACEs that grant access. Security descriptors also contain the object owner.
Mandatory Integrity Control is implemented through a new type of ACE on a security descriptor.
Files and folder permissions can be edited by various tools including Windows Explorer, WMI, command line tools like Cacls, XCacls, ICacls, SubInACL, the freeware Win32 console FILEACL, the free software utility SetACL, and other utilities. To edit a security descriptor, a user needs WRITE_DAC permissions to the object, a permission that is usually delegated by default to administrators and the object's owner.

Permissions in NTFS

uses a set of 14 permissions for files and folders that are in the form of ACL stored in security descriptors. The following table summarizes the system of permissions, which is obscured by using different names and abbreviations in various programs as well as a number of levels of permission mappings, like generic access rights, standard access rights and special permissions that all are mapped to the permissions for files and folders.