[SOLVED]can't connect to SMB shares from Windows7 since migrating to OMV4

    • OMV 4.x
    • [SOLVED]can't connect to SMB shares from Windows7 since migrating to OMV4

      Hi everybody,
      I read a lot on the forum but I can't find any solution as I suppose there is not so much people still using Windows 7.
      I was using SMB shares on OMV3 and everything was fine.
      Since I migrate to omv4, I can't acces from my windows 7 station. Acces is OK with the same accounts on MacOs stations and Linux stations.
      looking at logs there's only one line repeating over and over :
      create_canon_ace_lists: unable to map SID S-1-5-80-2375682873-768044350-3534595160-1005545032-2873800392 to uid or gid.

      I can't understand what is going wrong....
    • If that can help, here is the smb part of /etc/openmediavault/config.xml :

      XML Source Code: config.xml

      1. <smb>
      2. <enable>1</enable>
      3. <workgroup>WORKGROUP</workgroup>
      4. <serverstring>%h server</serverstring>
      5. <loglevel>10</loglevel>
      6. <usesendfile>1</usesendfile>
      7. <aio>1</aio>
      8. <localmaster>1</localmaster>
      9. <timeserver>1</timeserver>
      10. <winssupport>0</winssupport>
      11. <winsserver></winsserver>
      12. <homesenable>0</homesenable>
      13. <homesbrowseable>1</homesbrowseable>
      14. <extraoptions>follow symlinks = yes
      15. wide links = yes
      16. unix extensions = no
      17. </extraoptions>
      18. <shares>
      19. <share>
      20. <uuid>64fc6552-b9cb-42f8-b565-0e7b4aa6df92</uuid>
      21. <enable>1</enable>
      22. <sharedfolderref>e4a38c24-b519-4483-841e-21af1e1d7279</sharedfolderref>
      23. <comment>Toute ma Musique</comment>
      24. <guest>no</guest>
      25. <readonly>0</readonly>
      26. <browseable>1</browseable>
      27. <inheritacls>1</inheritacls>
      28. <inheritpermissions>1</inheritpermissions>
      29. <recyclebin>0</recyclebin>
      30. <recyclemaxsize>0</recyclemaxsize>
      31. <recyclemaxage>0</recyclemaxage>
      32. <hidedotfiles>1</hidedotfiles>
      33. <easupport>0</easupport>
      34. <storedosattributes>0</storedosattributes>
      35. <hostsallow></hostsallow>
      36. <hostsdeny></hostsdeny>
      37. <audit>0</audit>
      38. <extraoptions></extraoptions>
      39. </share>
      40. <share>
      41. <uuid>20883579-59be-4281-a2a6-502076178fdf</uuid>
      42. <enable>1</enable>
      43. <sharedfolderref>1efb3278-135e-408d-a057-e9d05df8151f</sharedfolderref>
      44. <comment>Films et autres Videos</comment>
      45. <guest>no</guest>
      46. <readonly>0</readonly>
      47. <browseable>1</browseable>
      48. <inheritacls>1</inheritacls>
      49. <inheritpermissions>1</inheritpermissions>
      50. <recyclebin>0</recyclebin>
      51. <recyclemaxsize>0</recyclemaxsize>
      52. <recyclemaxage>0</recyclemaxage>
      53. <hidedotfiles>1</hidedotfiles>
      54. <easupport>0</easupport>
      55. <storedosattributes>0</storedosattributes>
      56. <hostsallow></hostsallow>
      57. <hostsdeny></hostsdeny>
      58. <audit>0</audit>
      59. <extraoptions></extraoptions>
      60. </share>
      61. </shares>
      62. </smb>
      Display All

      And my smb.conf file :

      Source Code: smb.conf

      1. #======================= Global Settings =======================
      2. [global]
      3. workgroup = WORKGROUP
      4. server string = %h server
      5. dns proxy = no
      6. log level = 10
      7. log file = /var/log/samba/log.%m
      8. max log size = 1000
      9. syslog only = yes
      10. panic action = /usr/share/samba/panic-action %d
      11. encrypt passwords = true
      12. passdb backend = tdbsam
      13. obey pam restrictions = no
      14. unix password sync = no
      15. passwd program = /usr/bin/passwd %u
      16. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      17. pam password change = yes
      18. socket options = TCP_NODELAY IPTOS_LOWDELAY
      19. guest account = nobody
      20. load printers = no
      21. disable spoolss = yes
      22. printing = bsd
      23. printcap name = /dev/null
      24. unix extensions = yes
      25. wide links = no
      26. create mask = 0777
      27. directory mask = 0777
      28. use sendfile = yes
      29. aio read size = 16384
      30. aio write size = 16384
      31. local master = yes
      32. time server = yes
      33. wins support = no
      34. follow symlinks = yes
      35. wide links = yes
      36. unix extensions = no
      37. #======================= Share Definitions =======================
      38. [Videos]
      39. comment = Films et autres Videos
      40. path = /media/e2b419af-7ef5-4046-ad19-48471fed97e2/Videos
      41. guest ok = no
      42. read only = no
      43. browseable = yes
      44. inherit acls = yes
      45. inherit permissions = yes
      46. ea support = no
      47. store dos attributes = no
      48. vfs objects =
      49. printable = no
      50. create mask = 0664
      51. force create mode = 0664
      52. directory mask = 0775
      53. force directory mode = 0775
      54. hide special files = yes
      55. follow symlinks = yes
      56. hide dot files = yes
      57. valid users = "caro","willynuisance","xbmc"
      58. invalid users =
      59. read list = "caro"
      60. write list = "willynuisance","xbmc"
      61. [Music]
      62. comment = Toute ma Musique
      63. path = /media/e2b419af-7ef5-4046-ad19-48471fed97e2/Music
      64. guest ok = no
      65. read only = no
      66. browseable = yes
      67. inherit acls = yes
      68. inherit permissions = yes
      69. ea support = no
      70. store dos attributes = no
      71. vfs objects =
      72. printable = no
      73. create mask = 0664
      74. force create mode = 0664
      75. directory mask = 0775
      76. force directory mode = 0775
      77. hide special files = yes
      78. follow symlinks = yes
      79. hide dot files = yes
      80. valid users = "willynuisance","caro","xbmc"
      81. invalid users =
      82. read list =
      83. write list = "willynuisance","caro","xbmc"
      Display All
    • Hi everybody,
      I finally target what's wrong and it has nothing to do with the migration.
      In my Windows 7 I had to go to the security policy settings (secpol.msc) then go to Local Policies > Security Options > Network Security: LAN Manager authentication level


      and I had to change it from "Send LM and NTML replies" to "Send NTLMv2 response only" or "Send LM & NTLM - use NTLMv2 session security if negotiated"

      I don't really know why it was working before.... but it's working now.

      Hope this can help somebody.

      Bye