Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


January 23, 2003

Hiding Specific Files from Unauthorized Users

Hiding specific files from certain users' view isn't easy
RSS
Subscribe to Windows IT Pro | See More NTFS Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Sometimes, challenging what we think we know is important. Last week, I received an email message from a reader asking a seemingly simple question: "How do I hide the content of drives from my users who don't have permission to see the files on those drives?" I tossed off a simple reply: "There's a Group Policy Object (GPO) called Prevent Access to Drives from My Computer. Use that."

The next day, the reader responded, telling me that using Prevent Access to Drives from My Computer didn't solve his problem--his users could use Windows Explorer to expand the folder listings on a particular drive by clicking the plus signs. Even worse, the Dir command still worked at the command prompt, fully enumerating the contents of the specified directory. Users couldn't access the files, but they could see that the files existed. To solve this administrator's problem, the files' existence needed to be hidden from unauthorized users.

I searched through the available GPOs and found "Hide these specified drives in My Computer." When you enable this policy, users can't use Windows Explorer to see the target drives. However, the drives and their content are still visible when a user runs the Dir command at a command prompt.

I wanted to discover some way to make this information invisible from the command line but didn't find any way to do so by using the services and tools that the OS makes available. I'm willing to bet that third-party tools exist that will let an administrator accomplish this goal. However, the best I could do was to suggest that the administrator set NTFS permissions to deny browsing on the target folders, a solution that isn't terribly helpful because it means making explicit permission changes on every network root folder that needs additional control. For the short term, I suggested that the administrator use the "Disable the Command prompt" policy to prevent users in groups with limited network access from launching a command session.

My solution is rather inelegant and definitely falls into the "If the only tool you have is a hammer, every problem looks like a nail" category. If any Windows Client UPDATE reader has found a better solution than using three separate GPOs yet can let users access the command prompt if necessary, please drop me an email message, even if your solution requires a third-party software tool.

End of Article



Reader Comments
My only other suggestion would be to create an alias for the DIR command ... then make DIR = a message that states "Sorry, this command is disabled". Not sure it will work, but just an idea.

Chris January 28, 2003


:) Here's what I like to do to hide folders & Files from prying eyes.

1. Create a DFS root.
2. Create a Share (example: UserData) and block Security list propogagtion (set only Administrator and System as Full Control (Everyone (users) are not listed) -- the share permission should allow Everyone (Read, Modify)
3. Create a sub-folder named appropriately such as "Hidden", and assign security for who is allowed to Read/Create, etc..
4. Add the shared folder, UserData, to the DFS root.

5. Now, uses can browse the root, and they will see the folder UserData but they will be unable to open it to see the Hidden value (even if they have a mapped drive.

6. Users who know the full path, can access it via \\dfsrootname.local\UserData\Hidden if they have sufficient rights. You can also create a nice "If Member" logon script to map that as a separate drive letter for those users who do have rights.

David Taylor December 22, 2003


This is the most frustrating part about moving from NetWare to Windows--having ALL folders show, just not letting users into them. I wish MS would fix this. For instance, I have 84 folders in a share that a normal user would have access to only 4 or 5 of. With NetWare, I'd put the user in a Group, add that group to just those 4 or 5 folders, and, when the user opens the share, they ONLY see the 4 or 5 folders. Nice and simple. With Windows, they see all 82, but, can get into only 4 or 5, but, unless they know WHICH ones (and, I'd settle for a color or icon change), they have to click on them all, until they find which ones open.

Bill Bradley May 05, 2004


There are now 2 options to make windows act like NetWare in this respect. A 3rd party solution for Windows 2000 or higher, and a free Microsoft solution for Windows 2003 SP1.

Microsoft has now made this available in Windows 2003 SP1, with a free add-on called Windows Server 2003 Access-based Enumeration. Documentation can be found at http://www.microsoft.com/windowsserver2003/techinfo/overview/abe.mspx .

ScriptLogic has a package called Cloak http://www.scriptlogic.com/eng/products/cloak/ that works on Windows 2000/2003.

Anonymous User April 27, 2005 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...

Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...


Windows OSs Whitepapers Protecting Microsoft SharePoint

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Troubleshooting Group Policy, eLearning series

Introduction to Identity Lifecycle Manager "2"

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


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 DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement