The Sysadmin Notebook  

Sitemap

Files and Folders

Securing Files and Folders

Contents

Files and Folders

Top Bottom

Share folders with explorer or Shared Folders snap-in. fsmgmt can also be used to create shares on remote computers. Only administrators can connect to administrative shares. Action menu in fsmgmt allows you to stop sharing the folder, open folder in explorer or configure its properties:

Share Permissions

Top Bottom

Share access levels

Share permissions are cumulative, but Deny overrides Allow. Share and NTFS permissions combine to apply the most restrictive settings. Limitations of Share Permissions:

Common practice is to use NTFS for detailed control, and set share permissions to Everyone: Full Control. Windows 2003 defaults share permissions to Everyone: Read. Use Session node of fsmgmt to monitor and disconnect users; use Open Files node to monitor open files and locks and to close connections; use the Shares node to send messages to connected machines (not sent to usernames). In Windows 2003, messenger service is disabled by default. See also Filesvr.msc

NTFS Permissions

Top Bottom

When a user attempts to access a resource, SIDs in users security access token are compared to SIDs in ACE of resource's ACL. Explorer can be used to configure NTFS permissions both locally and remotely. Permissions templates:

Use advanced button to see specific ace's applied to object, set auditing, owner and see effective permissions. Choose edit to see (and edit) specific permissions associated with an ACE. ACL Editor is also available from fsmgmt. Valid security principals:

Only explicit permissions can be editted in ACL Editor, inherited permissions require special treatment. No permission setting currently available to deny user from copying a file if they have Read access: planned digital rights management controls may address this. Effective permissions tab of ACL Editor gives an approximation: no account is taken of Share level permissions nor does it account for special group memberships (eg anonymous, batch, creator owner, dialup, enterprise domain controllers, interactive, network, proxy, restricted, remote interactive logon, service, system, ts user, other organisation, this organisation). Try running effective permissions on user, then on these groups to get the full picture. Any permissions assigned to Creator Owner on parent are assigned to the user creating a child object. An objects owner can ALWAYS modify its ACL. Ownership also used by disk quota software. Administrators can take ownership or allow 'take ownership' for another user. Users with 'Restore Files and Directories' right can transfer ownership to another user.

Inheritance

Top Bottom

By default permissions applied to folders apply to files and folders beneath it. Changes to the parent are applied to its children when inheritance is turned on. Inheritance can be managed from both the parent object (using apply onto) and child (using allow inheritance). You cannot simply untick an inherited permission. You can override it with an explicit assignment, or you can block inheritance for the object and assign an explicit ACL. You can also block all propagation from the parent object: in which case you'll be prompted to copy or remove existing inherited permissions. Blocking inheritance should be used sparingly: increases complexity of access control management. Inheritance can be reinstated from either the parent or child. From child, simply select Allow Inheritable Permissions and those permissions will be applied. Existing explicit permissions will be preserved. If you choose replace permissions from parent, all permissions are removed and inheritable permissions are applied. Assessing effective permissions:

Auditing File Access

Top Bottom

Auditing File access achieved in three steps: