Network file sharing

kylepaddock

Distinguished
Dec 31, 2009
31
0
18,530
I have a computer running Windows Server 2008 R2. I have a drive that I need to share on the network but I need username and password to login. When I enable sharing it allows anyone in. I know how to do this in Linux but not Windows. Any help would be great.
 
I don't use this, but I found this link: https://www.techotopia.com/index.php/Configuring_Windows_Server_2008_File_Sharing

"Standard file sharing, which is only permitted on NTFS volumes, allows individual folders files and volumes to be shared to specific users. This provides far greater levels of security over network access through a combination of NTFS file and folder permissions and share permissions, and avoids the necessity to move files from their existing location in order to share them."

So I assume PUBLIC sharing should be off so anybody you share with has to be on your private network which I believe involves the same ROUTER and logging into the same Workspace? I could be wrong.
 
Default share access gives read permissions to Everyone.
You have to remove Everyone from the list and add specific users there.

Windows_server_2008_share_properties.jpg
 

kylepaddock

Distinguished
Dec 31, 2009
31
0
18,530


I removed everyone then added Administrator but from another computer on the network I can still access files without a password.

 
You have to note, there are share permissions and file access permissions.

If you removed everyone from share permissions and added single user there, then only this user would be able to access this share.
If this is domain user or it is local user with same username/password on both computers, then password would not be asked, when accessing the share.

If you just changed file access permissions, then everyone would still be able to access the share. Only access to specified file would be limited.
 

kylepaddock

Distinguished
Dec 31, 2009
31
0
18,530


I have confirmed that only Administrator is in both Security and Shared Permissions. The user on the server is Administrator and I am on my personal laptop testing it. Same network and workgroup but not a domain user. I want to be able to login to the folder with the server user and password.

 

kylepaddock

Distinguished
Dec 31, 2009
31
0
18,530


I went to another computer and still was able to access it. I also changed the folder shared to Guest and I still could access it.

 

kylepaddock

Distinguished
Dec 31, 2009
31
0
18,530
So I went and created a 3rd user now it says that I do not have permission to access the folder when I access from another computer. It does not give me a place to type a username and password.
 

kylepaddock

Distinguished
Dec 31, 2009
31
0
18,530
I will try to get a screen shot of the server. I changed the settings to share to a group and now it will not allow access. It asks for a username and password. I type WINFILE\Guest and the password then it pops up a few seconds later. I try adding the domain first and also trying without the domain and it still does not allow login. I'm getting there slowly.