Domain – Windows Server 2008 – Non-Domain users can see the server shares

active-directorydomainwindows-server-2008

Windows Server 2008 – Server Machine
Windows 7 Professional – Client Machine

I have a domain. It was setup by the client. The shares on the server are restricted correctly when a user logs on to the domain and uses their workstation, I have a few groups setup to restrict some access but the groups are at their core "Domain Users".
The problem I am having is that when a user brings in a laptop with Windows 7 Pro on it, they can type up the name of the server in the "Run Dialog" on the start menu like "\SERVERNAME\" and access all of the shares freely… because they are not logged in to the domain there are no restrictions it seems.

I have reviewed the permissions on the folders and they all have to be "Domain Users" and I have removed "Everyone" from the list of people able to see it. Guest access is also disabled…

What am I doing wrong? Only group in the list is "Domain Users" isn't a domain user a user that is logged in to the domain? How do I stop non-domain users from seeing the shared folder?

I noticed this on Windows Server 2003 too at another time. I assume they both had similar security issues and neither were set up by myself so I am not sure what could have been enabled or specifically deactivated that makes this issue appear.

I am looking at the Security >> Permissions and not "Share Permissions" but wouldn't the security permissions stop read/write on non-authenticated domain users?

Best Answer

There are two types of permissions on shared folders, and you haven't explained which set you're looking at - and you haven't explained if the non-domain users can actually read files, or if they can just see the share names.

I'm guessing that you've examined the NTFS permissions on the files and folders, and those don't allow "everyone". But I bet that your share permissions (which are set in a different place) are set to allow "Full Control" to "Everyone". That's not a big issue - the more-restrictive set of permissions will mean that these anonymous users can't do anything else besides read the names of the share.

That's my guess, based on what you've said.

However, if they can access and read the actual files, then either you're missing something in the NTFS permissions, or they are successfully authenticating to the server. If their local username on the non-domain machine is the same as their domain username, and the password is the same, the client may be attempting (and succeeding) at passing NTLM authentication.

From the server, why don't you bring up Sessions under Shared Folders in Server Management and see what's going on from that perspective?