Click here to Skip to main content
14,733,966 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hi,

is it possible to restrict access to a shared folder on a windows server 2012 this way:
- everyone can read files if he knows the exact filename and subdirectory
- directory listing within the shared folder is not allowed
Posted
Updated 28-Feb-15 2:51am
v2
Comments
[no name] 28-Feb-15 8:00am
   
Interesting question, I'm also looking forward to the answers. Easy to do on WWW, but at the Moment no idea how to do it in win (except hidden shares).
Afzaal Ahmad Zeeshan 28-Feb-15 8:47am
   
Possibly you should create a user-interface for this. If you're talking about some website, then yes, this happens every time. Any access to an invalid file name is a 404. And, do not allow the users to manipulate the directories, and/or show the directories to the users.

1 solution

Theoretically it can be done. As you can read here[^] samba(share) rights and ntfs rights are not related. So if you make the proper combination, you get what you need. I takes a little bit of tuning, but you can experiment on much any PC with XP and up, as NTFS and windows share rights management has not changes ever since...
As I see, this is much the same question: http://serverfault.com/questions/458611/ntfs-share-allow-file-read-deny-list-folder[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900