Windows XP might be fully cooperative if you want to connect to two different Samba shares on the same machine, using different user names. Here’s how to solve it.
- Open up your “hosts” file in a text editor. This is the location on Windows XP:
C:\WINDOWS\system32\drivers\etc\hosts
- Add two different hostnames with the same IP address.
- Enter control panel -> User accounts and select your user. Then click “Manage your network passwords” (in the upper left corner, assuming you haven’t selected “classic mode”).
- Add the different host names and the corresponding user names and passwords you want to use. You might need to add “MACHINENAME\” before the user name. The MACHINENAME is the network name of your Windows machine.
- Optionally, map the shares as network drives.