Web lists-archives.com

[Samba] Samba works, but no acces to home directories




Hello,


I installed a fresh opensuse Tumbleweed with samba
4.8.2+git.30.690aa93c189-2.2.

smb.conf looks as follows:

[global]
        server string = host12
        workgroup = WORKGROUP
        ; speed optimierungen
        socket options = TCP_NODELAY
        debug level = 10
        getwd cache = yes
        preserve case = yes
        bind interfaces only = yes
        interfaces = br0
        encrypt passwords = yes
        printing = cups
        printcap name = cups
        printcap cache time = 750
        smb ports = 139
        local master = no
        kernel oplocks = No
        ; ----- same as "umask 2"
        create mask = 0775
        ; ----- disconnect after N minutes inactive
        dead time = 300
        ; ----- check whether clients are alive [seconds]
        keep alive = 300
        ; ----- may delete readonly files
        delete readonly = yes
        ; ----- logfiles grow up to N kByte
        max log size = 100
        ; ----- don't map archive bit to execute bit
        map archive = no
        directory mask = 0775
        ; ----- WINS support
        wins support = yes
        name resolve order = wins host bcast
        security = user
        unix charset = UTF-8
        netbios aliases = homedirs
        usershare allow guests = No


[homes]
        comment = Home Directory
        browseable = no
        writable = yes

[......som other sharees....]

Permissions for the home directories should work I think:

host12# ll -d /mnt/home/user/
drwxr-xr-x 75 user entw 4096 Jun 25 15:30 /mnt/home/user/ User is added to the samba password database with
"smbpasswd -a user". /mnt/home is on a second disk:
UUID=d3100e02-be82-43a0-af5b-054bcf6c0575  /boot        ext4 
acl,user_xattr  0  2 UUID=91b5580b-6272-408e-bf24-1b7ffe07da55 
swap         swap  defaults        0  0
UUID=d1413106-210d-4f03-8f60-699cf3486251  /            ext4 
acl,user_xattr  0  1 UUID=086480e2-d313-495f-8fba-fef25c9149a3 
/mnt/home/   ext4  acl,user_xattr  0  1 All shares are working EXCEPT
the user homes. With a raised log level I found:  
--------------------------

[2018/06/25 16:45:25.652326,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.652388,  3]
../source3/smbd/smb2_server.c:3171(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[NT_STATUS_FILE_CLOSED] || at ../source3/smbd/smb2_server.c:2582
[2018/06/25 16:45:25.656520,  3]
../source3/smbd/filename.c:1382(get_real_filename_full_scan)
  scan dir didn't open dir [.]
[2018/06/25 16:45:25.656569,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.657368,  3]
../source3/smbd/filename.c:1382(get_real_filename_full_scan)
  scan dir didn't open dir [.]
[2018/06/25 16:45:25.657404,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.658062,  3]
../source3/smbd/filename.c:1382(get_real_filename_full_scan)
  scan dir didn't open dir [.]
[2018/06/25 16:45:25.658095,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.658743,  3]
../source3/smbd/filename.c:1382(get_real_filename_full_scan)
  scan dir didn't open dir [.]
[2018/06/25 16:45:25.658777,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.659339,  3]
../source3/smbd/filename.c:1382(get_real_filename_full_scan)
  scan dir didn't open dir [.]
[2018/06/25 16:45:25.659374,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.659977,  3]
../source3/smbd/filename.c:1382(get_real_filename_full_scan)
  scan dir didn't open dir [.]
[2018/06/25 16:45:25.660012,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.660618,  3] ../source3/smbd/open.c:1261(open_file)
  Error opening file . (NT_STATUS_ACCESS_DENIED) (local_flags=0) (flags=0)
[2018/06/25 16:45:25.660657,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296
[2018/06/25 16:45:25.662505,  3] ../source3/smbd/open.c:1261(open_file)
  Error opening file . (NT_STATUS_ACCESS_DENIED) (local_flags=0) (flags=0)
[2018/06/25 16:45:25.662565,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296[2018/06/25 16:46:42.200115,  3]
../source3/smbd/open.c:1261(open_file)
  Error opening file . (NT_STATUS_ACCESS_DENIED) (local_flags=0) (flags=0)
[2018/06/25 16:46:42.200187,  3]
../source3/smbd/smb2_server.c:3171(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_create.c:296

-----------------------------------


Any Ideas whats going wrong here?
I'm struggling 2 days with this error, searching the net, trying paramaters....nothing works.
If you need further informations feel fre to ask for.

Thanks

Daniel

-- 
Daniel Spannbauer                         Systemadministration
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4-6, D 87727 Babenhausen     Mobil +49 171 4033220
http://www.marco.de/                      Email ds@xxxxxxxx
Geschäftsführer Martin Reuter             HRB 171775 Amtsgericht München


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba