This is a solution for Windows 7 (although it might work for other versions as well)
open Notepad (or any text editor) as Administrator
(you have to right click and say 'run as Administrator')
find : c:\WINDOWS\system32\drivers\etc\hosts (you will need to show all files not only .txt)
Now, if i.e. :
- you have 3 samba users: tom fred jon
- 3 samba shares on your samba server (i.e. IP: 192.168.0.100): docs stuff pics
- you want to connect as tom to docs, as fred to stuff and as jon to pics
Now add the following lines to the hosts file:
192.168.0.100 tomsdocs tomsdocs
192.168.0.100 fredstuff fredstuff
192.168.0.100 jonspics jonspics
Once you close and save you can "Map a network drive" like so:
\\tomsdocs\docs as user tom
\\fredstuff\stuff as user fred
\\jonspics\pics as user jon
Note that the names above are totally up to you ... Whatever you put into the hosts file will need to mach what you call the server when you map the network drive.
The reason this works, is because windows needs to think it is connecting to different servers.
Arguably, you could also set up your own home DNS server, but I prefer faking a bunch of entries in the hosts file (which gets evaluated before your windows machine asks the DNS for help).
Since the entire problem is a client side windows problem, I prefer doing it this way.
Hope this helps.
Are you just looking to connect using samba? Samba already supports this AFAIK. – heavyd – 2010-01-14T17:32:25.513