Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have some directories on one of our servers that are shared, however, they need to be locked down to an extent that they cannot be accessed by logging on as a local user or administrator or by using the \\server\C$... line.

There are only going to be a select few users that need access to these folders.

Ive read bits about a .htaccess file, however, unable to get it to work.

Help much appreciated!

EDIT: the server that will store the folders is a Windows Server 2008

share|improve this question

closed as not a real question by MDMarra, Tim Brigham, voretaq7 Jul 26 '12 at 19:23

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
More information is going to be needed. You mention .htaccess, is this apache? Are the shares web directories? or what exactly are the shares? –  Somantra Jul 16 '12 at 15:59
    
Hi,The server is a Windows server 2008, and the shares are basic shares on the drives on the server. –  Adam Jul 16 '12 at 16:01
    
Just for clarification: You want to restrict access to the windows shares on the server. Not to a IIS Website. –  Marcel Janus Jul 16 '12 at 16:05
    
This is a for real question ? –  Iain Jul 16 '12 at 16:30
    
Um. Isn't .htaccess for Apache web servers? –  tombull89 Jul 16 '12 at 17:25

1 Answer 1

.htaccess has nothing whatsoever to do with Windows File Permissions.

You need to read up on NTFS File & Share (These are different) permissions. That said, attempting to restrict domain and local administrators is fundamentally a lost cause as these can always be overridden.

share|improve this answer
    
If the files only need to be accessed by a single user, then encryption might be an option that cannot be worked around so long as the administrator doesn't install keyboard logger. –  Zoredache Jul 16 '12 at 16:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.