Cannot access smb share

I have a share named data_500 permissions are 777 owner & group are root.
I exported it with the name data_500.
/etc/samba/smb.conf looks like this:

smb.conf
[global]
log level = 3
map to guest = Bad User
cups options = raw
log file = /var/log/samba/log.%m
printcap name = /dev/null
load printers = no

####BEGIN: Rockstor SAMBA GLOBAL CUSTOM####
    workgroup = WORKGROUP
####END: Rockstor SAMBA GLOBAL CUSTOM####

####BEGIN: Rockstor SAMBA CONFIG####
[data_500]
    root preexec = "/opt/rockstor/bin/mnt-share data_500"
    root preexec close = yes
    comment = Samba-Export
    path = /mnt2/data_500
    browseable = yes
    read only = no
    guest ok = yes
    admin users = flo
####END: Rockstor SAMBA CONFIG####

It should be publicly accessible on the network, however it always asks for user and pw. I tested with my account password for flo and root - both do not work.
Tested on Win10 and macOS
I tried the suggestions frome here: Log into samba export without a password but had no success.
Any suggestions or examples of how to get it to run?

Here’s the error log:

smb.log
[2017/03/11 17:00:52.221167,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:52.221485,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/tmp' for service [IPC$]
[2017/03/11 17:00:52.221703,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:52.221972,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2017/03/11 17:00:52.222500,  3] ../source3/smbd/service.c:872(make_connection_snum)
  desktop-h1dhrhh (ipv4:192.168.178.21:52155) connect to service IPC$ initially as user flo (uid=1000, gid=1000) (pid 24777)
[2017/03/11 17:00:52.223666,  3] ../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |data_500| in dfs path \NAS\data_500 is not a dfs root.
[2017/03/11 17:00:52.223813,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:52.224104,  3] ../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |data_500| in dfs path \NAS\data_500 is not a dfs root.
[2017/03/11 17:00:52.224199,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:52.224485,  3] ../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |data_500| in dfs path \NAS\data_500 is not a dfs root.
[2017/03/11 17:00:52.224597,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:52.224889,  3] ../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |data_500| in dfs path \NAS\data_500 is not a dfs root.
[2017/03/11 17:00:52.225048,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:52.225506,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:52.225840,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/mnt2/data_500' for service [data_500]
[2017/03/11 17:00:52.226006,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:52.226094,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
Traceback (most recent call last):
  File "/opt/rockstor/bin/mnt-share", line 42, in <module>
    import scripts.mount_share
  File "/opt/rockstor/src/rockstor/scripts/__init__.py", line 5, in <module>
    django.setup()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/log.py", line 86, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/opt/rockstor/var/log/rockstor.log'
[2017/03/11 17:00:53.220601,  1] ../source3/smbd/service.c:739(make_connection_snum)
  root preexec gave 1 - failing connection
[2017/03/11 17:00:53.220849,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_tcon.c:135
[2017/03/11 17:00:53.221961,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:53.222116,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/mnt2/data_500' for service [data_500]
[2017/03/11 17:00:53.222187,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:53.222219,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
Traceback (most recent call last):
  File "/opt/rockstor/bin/mnt-share", line 42, in <module>
    import scripts.mount_share
  File "/opt/rockstor/src/rockstor/scripts/__init__.py", line 5, in <module>
    django.setup()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/log.py", line 86, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/opt/rockstor/var/log/rockstor.log'
[2017/03/11 17:00:54.208907,  1] ../source3/smbd/service.c:739(make_connection_snum)
  root preexec gave 1 - failing connection
[2017/03/11 17:00:54.209298,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_tcon.c:135
[2017/03/11 17:00:54.210509,  3] ../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |data_500| in dfs path \NAS\data_500 is not a dfs root.
[2017/03/11 17:00:54.210607,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:54.212055,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:54.212401,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/mnt2/data_500' for service [data_500]
[2017/03/11 17:00:54.212607,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:54.212695,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
Traceback (most recent call last):
  File "/opt/rockstor/bin/mnt-share", line 42, in <module>
    import scripts.mount_share
  File "/opt/rockstor/src/rockstor/scripts/__init__.py", line 5, in <module>
    django.setup()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/log.py", line 86, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/opt/rockstor/var/log/rockstor.log'
[2017/03/11 17:00:55.196818,  1] ../source3/smbd/service.c:739(make_connection_snum)
  root preexec gave 1 - failing connection
[2017/03/11 17:00:55.197097,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_tcon.c:135
[2017/03/11 17:00:55.197712,  3] ../source3/rpc_server/srv_pipe.c:728(api_pipe_bind_req)
  api_pipe_bind_req: srvsvc -> srvsvc rpc service
[2017/03/11 17:00:55.197846,  3] ../source3/rpc_server/srv_pipe.c:356(check_bind_req)
  check_bind_req for srvsvc context_id=0
[2017/03/11 17:00:55.197937,  3] ../source3/rpc_server/srv_pipe.c:399(check_bind_req)
  check_bind_req: srvsvc -> srvsvc rpc service
[2017/03/11 17:00:55.198343,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:55.198575,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/mnt2/data_500' for service [data_500]
[2017/03/11 17:00:55.198676,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:55.198712,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
Traceback (most recent call last):
  File "/opt/rockstor/bin/mnt-share", line 42, in <module>
    import scripts.mount_share
  File "/opt/rockstor/src/rockstor/scripts/__init__.py", line 5, in <module>
    django.setup()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/log.py", line 86, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/opt/rockstor/var/log/rockstor.log'
[2017/03/11 17:00:56.180583,  1] ../source3/smbd/service.c:739(make_connection_snum)
  root preexec gave 1 - failing connection
[2017/03/11 17:00:56.180888,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_tcon.c:135
[2017/03/11 17:00:56.181971,  3] ../source3/rpc_server/srv_pipe.c:1450(api_rpcTNP)
  api_rpcTNP: rpc command: SRVSVC_NETSHAREGETINFO
[2017/03/11 17:00:56.182402,  3] ../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |data_500| in dfs path \NAS\data_500 is not a dfs root.
[2017/03/11 17:00:56.182513,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:56.183675,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:56.183841,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/mnt2/data_500' for service [data_500]
[2017/03/11 17:00:56.183917,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:56.183954,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
Traceback (most recent call last):
  File "/opt/rockstor/bin/mnt-share", line 42, in <module>
    import scripts.mount_share
  File "/opt/rockstor/src/rockstor/scripts/__init__.py", line 5, in <module>
    django.setup()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/log.py", line 86, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/opt/rockstor/var/log/rockstor.log'
[2017/03/11 17:00:57.162035,  1] ../source3/smbd/service.c:739(make_connection_snum)
  root preexec gave 1 - failing connection
[2017/03/11 17:00:57.162273,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_tcon.c:135
[2017/03/11 17:00:57.162560,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_FS_DRIVER_REQUIRED] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:57.163419,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:57.163575,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/mnt2/data_500' for service [data_500]
[2017/03/11 17:00:57.163676,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:57.163710,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
Traceback (most recent call last):
  File "/opt/rockstor/bin/mnt-share", line 42, in <module>
    import scripts.mount_share
  File "/opt/rockstor/src/rockstor/scripts/__init__.py", line 5, in <module>
    django.setup()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/log.py", line 86, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/opt/rockstor/var/log/rockstor.log'
[2017/03/11 17:00:58.140401,  1] ../source3/smbd/service.c:739(make_connection_snum)
  root preexec gave 1 - failing connection
[2017/03/11 17:00:58.140673,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_tcon.c:135
[2017/03/11 17:00:58.142462,  3] ../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |data_500| in dfs path \NAS\data_500 is not a dfs root.
[2017/03/11 17:00:58.142576,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2017/03/11 17:00:58.144197,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.178.21 (192.168.178.21)
[2017/03/11 17:00:58.144354,  3] ../source3/smbd/service.c:622(make_connection_snum)
  Connect path is '/mnt2/data_500' for service [data_500]
[2017/03/11 17:00:58.144428,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2017/03/11 17:00:58.144460,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
Traceback (most recent call last):
  File "/opt/rockstor/bin/mnt-share", line 42, in <module>
    import scripts.mount_share
  File "/opt/rockstor/src/rockstor/scripts/__init__.py", line 5, in <module>
    django.setup()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/log.py", line 86, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/opt/rockstor/var/log/rockstor.log'
[2017/03/11 17:00:59.131243,  1] ../source3/smbd/service.c:739(make_connection_snum)
  root preexec gave 1 - failing connection
[2017/03/11 17:00:59.131476,  3] ../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_tcon.c:135

Apologies if I get the formatting wrong posting here. I posted my working [Global] section from my smb.conf below. Looking at your section, I see you are missing the line: security = user

Maybe that is what is missing?

[global]
workgroup = SAMBA
security = user
map to guest = Bad User
passdb backend = tbdsam

printing = cups
printcap name = cups
load printers = yes
cups options = raw

1 Like