Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


December 19, 2005

Navigating the File System Permission Jungle

Cut through the complexity with this field guide to Windows object access
RSS
View this exclusive article with VIP access -- click here to join | See More Security Articles Here | Reprints
Or sign up for our VIP Monthly Pass!

Windows controls how users access files and folders through a detailed and complex system of permissions. In fact, Windows has one of the most granular object-access control mechanisms of any popular OS. Files and folders have at least 14 NTFS permissions that can be allowed or denied—and audited. You can set these permissions on a per file or folder and per user or group basis. You can also set permission inheritance on a per file or folder and per user or group basis. It's easy to get bogged down in a quagmire of permissions complexity. Here's a quick guide to how Windows file and folder permissions work and how to use them more effectively.

Object Access Basics
A user never directly "touches" any Windows object. All object access is done through programs (e.g., Windows Explorer, Microsoft Office) or processes. A program accessing a local resource on behalf of the user is called impersonation . A program accessing a remote resource is called delegation.

After a user logs on, the user's own System Identifier (SID) and group SIDs are collected by the lsass.exe process to create the user's security access token. Other information is added to the security access token, including the user rights assignments (also called user privileges), the user's session ID (unique for every session), a rights mask detailing the type of access being requested, and other information. You can see the user rights assignments by typing

WHOAMI /all 

When a program accesses a protected resource on behalf of a user, the Windows security reference monitor asks the program for the user's security access token. The security reference monitor then examines the token to determine the user's effective permissions and allows or denies the operation the user has requested. (I'll describe how effective permissions are arrived at in more detail in a moment.)

Share Permissions
Every protected object in Windows—including files, folders, shares, printers, and registry keys—has security permissions. Any Windows folder can be shared to allow remote access. You can set Share permissions on any folder or printer object in Windows, but the permission applies only when the object is accessed over a network share. Folder Share permissions are Full Control, Change, and Read.

Security principals given Full Control of an object can do nearly anything they want to the object. They can delete, rename, copy, move, and modify the object. Full Control also allows a user to change the object's Share permissions and take ownership of the object (if the user doesn't already have ownership and the Take Ownership privilege). This means that any user with Full Control can remove other people's—including the administrator's—permissions, (although the administrator can always reassume ownership and reassign permissions). The ability to change permissions is actually a requirement of any discretionary access control—DAC—OS such as Windows.

In most cases, the main access that nonadministrative users need to a share is Change permission. Change permission allows a user to add, delete, modify, and rename any resource in the covered folder. The Read permission allows a user to view, copy, rename, and print the object. A user with Read permission can often copy the object to a new location, and in the new location, the user has Full Control permission.

NTFS Permissions
If the Windows file system is NTFS (rather than FAT), all files, folders, registry keys, services, and many other objects have NTFS permissions. NTFS permissions apply whether the object is accessed remotely or locally. To view or modify a file or folder's NTFS permissions, simply right-click the object, choose Properties, then go to the Security tab.

Table 1 shows 7 summary NTFS permissions. These summary permissions are created by various combinations of 14 more-granular permissions, which Table 2 shows. You can view the more-granular permissions by clicking Advanced on the Security tab to open the Advanced Security Settings dialog box for the object, then clicking Edit on the Permissions tab. Reviewing the more-granular permissions of an object, even though it takes more effort, is a good habit to get into, especially for objects that need heightened security. The summary permissions sometimes don't accurately reflect the more-granular permission settings. For example, I've seen summary Read permission displayed when the user really had Read & Execute permission.

Similar to Full Control Share permission, Full Control NTFS permission gives a lot of authority to the holder. Nonadministrative users often have Full Control permission to their home directory and other files and folders. As I mentioned earlier, this permission level allows the holder to change the file permissions and take ownership, if they so choose. Instead of giving users Full Control permission, consider giving only Modify permission. (Then, if the user is the file owner, you can manually take away his or her ability to change permissions, if necessary.)

Note that NTFS permissions are technically known as discretionary ACL (DACL) permissions. Auditing permissions are known as system ACL (SACL) permissions. Most NTFS-protected objects have both.

The Effect of Windows Trusts
By default, all domains in Windows 2000 and later forests have a two-way transitive trust to all other domains in the forest. When a domain trusts another domain, all users in the trusted domain have the same security permissions in the trusting domain as the Everyone group and Authenticated Users group in the trusting domain. Because many permissions in any given domain are assigned to both those groups by default, a trust implicitly gives a lot of permissions that would otherwise not be granted. Be aware that unless you use a selective trust, any permission you give to the Everyone group or Authenticated Users group is also granted to every other user throughout the forest.

   Previous  [1]  2  Next 


Reader Comments
Great article.

ajb120850 January 08, 2008 (Article Rating: )


Why can't I see the whole article even though I am logged in?

david@landress.net February 14, 2008 (Article Rating: )


David, you must purchase the subscription service to see the subscriber-only content. Which sucks, but that's what they are forcing.

rnerbas February 20, 2008 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Windows Chief Leaving Microsoft

Kevin Johnson, the man most directly responsible for current and future versions of Windows, as well as Windows Live and Microsoft's online services, is leaving the company for a position at Juniper Networks. Johnson has been co-president or president ...

How can I limit Exchange mailbox size?

...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...


Security Whitepapers Anti-Virus Is Dead: The Advent of the Graylist Approach to Computer Protection

Getting the Job Done: Comparing Approaches for Desktop Software Lockdown

Instant Messaging, VoIP, P2P, and games in the workplace: How to take back control

Related Events Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Shortcut Guide to SQL Server Infrastructure Optimization
With right tools and techniques, you can have a top-performing SQL Server infrastructure without having to cram your data centers so that they're overflowing. Download this eBook to learn how.

WinConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

Become a fan of Windows IT Pro on Facebook!
Join us on Facebook and be a fan of Windows IT Pro!

Continuous Data Protection and Recovery for Exchange
Read this white paper to learn about Continuous Data Protection (CDP), Exchange 2007's local continuous replication and cluster continuous replication features.

Rev Up Your IT Know-How with Our Recharged Magazine!
The improved Windows IT Pro provides trusted IT content with an enhanced new look and functionality! Get comprehensive coverage of industry topics, expert advice, and real-world solutions—PLUS access to over 10,000 articles online. Order today!

Tips to Managing Messaging
Discover three fundamental mail and messaging management services - security, availability and control services - and how you can implement them in a Microsoft-centric mail and messaging environment.

Get It All with Windows IT Pro VIP
Stock your IT toolbox with every solution ever printed in Windows IT Pro and SQL Server Magazine plus bonus Web-exclusive content on hot topics. Subscribe to receive the VIP CD and a subscription to your choice of Windows IT Pro or SQL Server Magazine!



Solving PST Management Problems
In this white paper, read about the top PST issues and how to administer local/network PST files.

Bandwidth Monitoring Tool from SolarWinds
Identify largest bandwidth users in seconds. Get the free download now.

Transform Your Data Center at Brocade Conference 2008
Storage networking industry’s premier event at the MGM Grand, Las Vegas, September 22 - 24, 2008

Are You Litigation Ready?
Collecting and processing electronic data for e-discovery can be time-consuming and expose a business to significant legal risks. Get prepared with this free white paper

Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.

KVM over IP Solutions
Learn about a KVM over IP solution that is specifically designed to meet the needs of the distributed IT environment.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound
IT Library Technical Resources Directory Connected Home Windows Excavator SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing