[SOLVED] Can´t access "openHAB Share" [/srv] with SMB

Hi there,

i finally found the time to migrate my oH 1.8.3 installation to the latest oH 2 version.
I used the latest openhabian image and choosed the expert Setup.
I already changed the password for all users and they´re working fine.
I´m able to connect to some of the predefined SMB shares like the Config folder.
But i´m not able to connect to the share folder [/srv]…
As the user openhabian is working to connect to the Conf share, i don´t think there´s a problem with the user or password.

I already checked the smb.conf and file permissions, but there is no difference.
I also tried using multiple systems, OS and VMs…

smb.conf

[global]
        bind interfaces only = Yes
        interfaces = eth0
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        security = USER
        server role = standalone server
        unix password sync = Yes
        dns proxy = No
        idmap config * : backend = tdb
        invalid users = root

[openHAB Share]
        comment = openHAB2 combined folders
        path = /srv
        delete veto files = Yes
        veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
        create mask = 0777
        directory mask = 0777
        read only = No
        valid users = opanhabian

[openHAB Conf]
        comment = openHAB2 site configuration
        path = /etc/openhab2
        delete veto files = Yes
        veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
        create mask = 0777
        directory mask = 0777
        read only = No
        valid users = openhabian

permissions

[21:51:35] openhabian@HER-openHAB2:/etc$ ls -al
drwxrwxr-x+ 13 openhab openhabian  4096 Jul 13 15:40 openhab2

[21:57:03] openhabian@HER-openHAB2:/$ ls -al
drwxrwxr-x   7 openhab openhabian  4096 Jul 11 20:59 srv

The only difference is the “+” behind the openhab2 folder in /etc.
But i didn´t found any information what this + means and if it has something to do with my problem.

Any ideas how to fix this problem and get an connection to the /srv share?

kind regards
Michael

Wikipedia says:

  • (plus) suffix indicates an access control list that can control additional permissions.

Here’s a more informative thread.

Thanks for the information.
I didn´t thinked about searching for “plus” instead of “+”.

[00:41:29] openhabian@HER-openHAB2:/$ getfacl srv 
# file: srv
# owner: openhab
# group: openhabian
user::rwx
group::rwx
other::r-x

[00:41:39] openhabian@HER-openHAB2:/$ getfacl /etc/openhab2 
getfacl: Removing leading '/' from absolute path names
# file: etc/openhab2
# owner: openhab
# group: openhabian
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx

What´s the difference now?
It´s an standard installation from the latest openhabian image and i didn´t changed anything except the password through the openhabian config.

Cheers
Michael

Even after setting up the exact same ACL for /srv i´m not able to connect…

[00:48:07] openhabian@HER-openHAB2:/$ getfacl srv
# file: srv
# owner: openhab
# group: openhabian
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x

[00:48:09] openhabian@HER-openHAB2:/$ getfacl etc/openhab2
# file: etc/openhab2
# owner: openhab
# group: openhabian
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x

I´m not even getting anything in the smbd logs…

.71 is an Windows 10 VMware
MacPro is my Mac OSX workstation

[00:53:32] openhabian@HER-openHAB2:/var/log/samba$ tailf log.192.168.2.71
^C
[00:55:11] openhabian@HER-openHAB2:/var/log/samba$ tailf log.her-macpro 
[2018/07/14 07:26:16.318475,  0] ../source3/smbd/smb2_server.c:707(smb2_validate_message_id)
  smb2_validate_message_id: client used more credits than granted, mid 6, charge 1, credits_granted 0, seqnum low/range: 6/0
[2018/07/14 13:57:07.136263,  0] ../source3/param/loadparm.c:2973(check_usershare_stat)
  check_usershare_stat: file /var/lib/samba/usershares/ owned by uid 0 is not a regular file
[2018/07/14 13:57:20.814844,  0] ../source3/smbd/service.c:793(make_connection_snum)
  '/etc/default/openhab2' is not a directory, when connecting to [openHAB Service]
[2018/07/14 13:57:20.819079,  0] ../source3/smbd/service.c:793(make_connection_snum)
  '/etc/default/openhab2' is not a directory, when connecting to [openHAB Service]
[2018/07/14 13:57:27.683719,  0] ../source3/param/loadparm.c:2973(check_usershare_stat)
  check_usershare_stat: file /var/lib/samba/usershares/ owned by uid 0 is not a regular file
[2018/07/15 00:55:49.385969,  0] ../source3/param/loadparm.c:2973(check_usershare_stat)
  check_usershare_stat: file /var/lib/samba/usershares/ owned by uid 0 is not a regular file
^C
[00:56:00] openhabian@HER-openHAB2:/var/log/samba$ tailf log.smbd
[2018/07/12 19:07:59.044253,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2018/07/12 19:09:50.221978,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2018/07/12 19:14:48.270923,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2018/07/12 19:22:16.845648,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2018/07/14 22:22:41.791811,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
^C
[00:56:32] openhabian@HER-openHAB2:/var/log/samba$ tailf log.    
^C
[00:56:47] openhabian@HER-openHAB2:/var/log/samba$ tailf log.nmbd 
  This response was from IP 192.168.2.8, reporting an IP address of 192.168.2.8.
[2018/07/15 00:44:36.264031,  0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)
  query_name_response: Multiple (2) responses received for a query on subnet 192.168.2.11 for name WORKGROUP<1d>.
  This response was from IP 192.168.2.8, reporting an IP address of 192.168.2.8.
[2018/07/15 00:49:49.302904,  0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)
  query_name_response: Multiple (2) responses received for a query on subnet 192.168.2.11 for name WORKGROUP<1d>.
  This response was from IP 192.168.2.8, reporting an IP address of 192.168.2.8.
[2018/07/15 00:54:52.309097,  0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)
  query_name_response: Multiple (2) responses received for a query on subnet 192.168.2.11 for name WORKGROUP<1d>.
  This response was from IP 192.168.2.8, reporting an IP address of 192.168.2.8.
^C

No ideas why the /srv share that comes with openhabian isn´t working?
That is something that is part of the image and not a thing that users implement.

I had a typo in valid users = opanhabian.