Windows 10:
I can't open more than one share of a server. Windows returns an error that the resource is not accessible.
Example: I open up \\raspberrypi\one
. Now I try to open \\raspberrypi\two
and Windows returns an error.
It is possible to access a second share by calling the IP instead of the name. \\raspberrypi\one
& \\192.168.0.5\two
are possible! A third share, either of the name or the IP, returns the same error.
smb.conf:
# Global parameters
[global]
workgroup = WORKGROUP
netbios name = raspberrypi
server string = Samba Server %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
encrypt passwords = yes
vfs object = recycle
recycle:maxsize = 0
[one]
path = /mnt/library/one
available = yes
guest ok = no
browsable = yes
writeable = yes
valid users = alice
create mask = 0640
directory mask = 0750
force user = alice
[two]
path = /mnt/library/two
available = yes
guest ok = no
browsable = yes
writeable = yes
valid users = bob
create mask = 0640
directory mask = 0750
force user = bob
[three]
path = /mnt/library/three
available = yes
guest ok = no
browsable = yes
writeable = yes
valid users = eve
create mask = 0640
directory mask = 0750
force user = eve
All three shares are accessed with different Users & passwords.
Server is a RaspberryPi with a vfat HDD.
Best Answer
Your problem is likely due to the different users and passwords. Windows associated the user with the host, not with the resource. So your trick of using the IP address directly made windows think it was a different host and allowed different credentials.
One work around could be to have your pi use an IP address per resource.