[SOLVED] Samba configuration windows mapping drive

I am configuring samba on Raspberryphi according with the documentation. I added these lines in the smb.conf file:

[openHAB2-userdata]
  comment=openHAB2 userdata
  path=/var/lib/openhab2
  browseable=Yes
  writeable=Yes
  only guest=no
  public=no
  create mask=0777
  directory mask=0777

[openHAB2-conf]
  comment=openHAB2 site configuration
  path=/etc/openhab2
  browseable=Yes
  writeable=Yes
  only guest=no
  public=no
  create mask=0777
  directory mask=0777

when I try to test i receive this error… anyone can help me to fix this issue?

thx

Not sure about the error message but I can share what I use that works on openhabian.
Screenshot%20at%202019-03-02%2008-05-19

thank you it helps me to fix the problem :slight_smile:

Glad I could help.:smiley:

Please click the square box (lower right corner after clicking the three dots … ) on the post that provided the solution and edit the title to start with [Solved].
Example:
image

Thanks

EDIT: I took care of editing the title.:wink:

Now i can see items anche things. but I can’t map a network drive. how can i add to my windows?

Capture

I’m not a Windows user so my help will be limited with how you need to map your drive but the error is complaining about the name. Have you used something like netstat -n -a from the command line to list all connections and names? You can also install TCPview if you prefer a GUI interface.

If the above doens’t help do a google search for something like how to map windows drives as this is not really an OH issue but a Windows Config issue.

You need to add the folder name as part of the mapping address ie \192.168.1.221\OpenHAB-conf

thank you!

i works :slight_smile: