Yet another confused Samba user and permissions.

    • OMV 0.5
    • Yet another confused Samba user and permissions.

      I hate to make another Samba permission related thread, but this has been driving me insane for HOURS. Can't sleep....

      Public works fine on my WIndows 8.1 machine. Cannot get private to work correctly. Windows just keeps saying it's not accessible, you might not have permission to access this network resource yada yada. Right after I put in my user:pass.

      I've looked EVERYWHERE for similar cases and help tracking down the issue. Total overload. There is just way too much information with way too many ways of diagnosing. MAN pages are great when you need something specific, but 50 pages of parameters that you don't need is overwhelming.

      Lets start with this:

      Source Code

      1. root@NAS-OMV:/media/95cc7417-ca5c-4041-85bc-5d67e76f0da8# ls -al
      2. total 40
      3. drwxr-xr-x 6 root users 4096 Aug 15 10:24 .
      4. drwxr-xr-x 7 root root 4096 Aug 15 11:36 ..
      5. drwxrwsr-x+ 7 nobody users 4096 Aug 15 10:25 cloud
      6. drwxr-xr-x 2 root root 16384 Aug 14 20:53 lost+found
      7. -rwxr-xr-x 1 root root 412 Aug 14 22:44 mount.json
      8. drwxr-sr-x 3 openmediavault openmediavault 4096 Aug 14 22:44 owncloud
      9. drwxr-xr-x 2 root root 4096 Aug 14 22:57 tmp


      "cloud" is the one I'm trying to share. Works fine if I set it to public.

      smb.conf:

      Source Code

      1. #======================= Global Settings =======================
      2. [global]
      3. workgroup = kmcollier
      4. server string = %h server
      5. include = /etc/samba/dhcp.conf
      6. dns proxy = no
      7. log level = 2
      8. syslog = 2
      9. log file = /var/log/samba/log.%m
      10. max log size = 1000
      11. syslog only = yes
      12. panic action = /usr/share/samba/panic-action %d
      13. encrypt passwords = true
      14. passdb backend = tdbsam
      15. obey pam restrictions = yes
      16. unix password sync = no
      17. passwd program = /usr/bin/passwd %u
      18. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      19. pam password change = yes
      20. socket options = TCP_NODELAY IPTOS_LOWDELAY
      21. guest account = nobody
      22. load printers = no
      23. disable spoolss = yes
      24. printing = bsd
      25. printcap name = /dev/null
      26. unix extensions = yes
      27. wide links = no
      28. create mask = 0777
      29. directory mask = 0777
      30. map to guest = Bad User
      31. use sendfile = yes
      32. aio read size = 16384
      33. aio write size = 16384
      34. null passwords = no
      35. local master = yes
      36. time server = no
      37. wins support = yes
      38. domain master = yes
      39. #======================= Share Definitions =======================
      40. [cloud]
      41. path = /media/95cc7417-ca5c-4041-85bc-5d67e76f0da8//cloud
      42. guest ok = no
      43. read only = no
      44. browseable = yes
      45. inherit acls = yes
      46. inherit permissions = no
      47. ea support = no
      48. store dos attributes = no
      49. printable = no
      50. create mask = 0755
      51. force create mode = 0644
      52. directory mask = 0755
      53. force directory mode = 0755
      54. hide dot files = yes
      55. valid users = "klay","megan"
      56. invalid users =
      57. read list =
      58. write list = "klay","megan"
      Display All


      stat:

      Source Code

      1. root@NAS-OMV:/media/95cc7417-ca5c-4041-85bc-5d67e76f0da8# stat cloud
      2. File: `cloud'
      3. Size: 4096 Blocks: 8 IO Block: 4096 directory
      4. Device: 811h/2065d Inode: 46006273 Links: 7
      5. Access: (2775/drwxrwsr-x) Uid: (65534/ nobody) Gid: ( 100/ users)
      6. Access: 2014-08-15 22:29:13.864207246 -0700
      7. Modify: 2014-08-15 10:25:31.907985486 -0700
      8. Change: 2014-08-15 22:46:17.632181188 -0700


      Now excuse me while I take a break with a bottle of Jack Daniels and cry my frustration away ;(
    • Alcohol is no solution ;)

      Please have a look on line 42 of the smb.conf. There is a double "/" in the path name. I think it should be a single one. Did you enable r/w access to the shared folder for yur user?
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work
    • And please only use permissions instead of ACL. ;)

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • The double slash thing is from the Shared Folders setup. Not sure why OMV puts that in automatically, but I've removed it. Didn't help :(

      I've done so many things trying to correct permission problems that I've probably messed them up good and proper at this point. Everything in ACL is disabled, but set for RW in owner and group. Privileges are set as RW for my user. Does samba care which owner and group have control over the folder?

      What permissions specifically are samba looking at? I'm ok with tinkering in the CLI, but not really sure what samba is doing.
    • Reboot the computer you're using to access your shares inbetween config changes. Windows sometimes is unable to recognize the changes.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • davidh2k wrote:

      Reboot the computer you're using to access your shares inbetween config changes. Windows sometimes is unable to recognize the changes.

      Greetings
      David


      Tried that a couple times. Also just tested it on my wife's machine that I haven't touched yet. Same problem.

      Does this help from my syslog? A quick Google of it never really got me an answer.

      Aug 16 14:18:34 NAS-OMV smbd[2028]: [2014/08/16 14:18:34.552070, 1] smbd/service.c:678(make_connection_snum)
      Aug 16 14:18:34 NAS-OMV smbd[2028]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
      Aug 16 14:18:34 NAS-OMV smbd[2028]: [2014/08/16 14:18:34.553868, 1] smbd/service.c:678(make_connection_snum)
      Aug 16 14:18:34 NAS-OMV smbd[2028]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
      Aug 16 14:18:39 NAS-OMV smbd[2028]: [2014/08/16 14:18:39.164432, 1] smbd/service.c:678(make_connection_snum)
      Aug 16 14:18:39 NAS-OMV smbd[2028]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
      Aug 16 14:18:39 NAS-OMV smbd[2028]: [2014/08/16 14:18:39.165731, 1] smbd/service.c:678(make_connection_snum)
      Aug 16 14:18:39 NAS-OMV smbd[2028]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
      Aug 16 14:18:43 NAS-OMV smbd[2028]: [2014/08/16 14:18:43.767228, 1] smbd/service.c:678(make_connection_snum)
      Aug 16 14:18:43 NAS-OMV smbd[2028]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
      Aug 16 14:18:43 NAS-OMV smbd[2028]: [2014/08/16 14:18:43.769358, 1] smbd/service.c:678(make_connection_snum)
      Aug 16 14:18:43 NAS-OMV smbd[2028]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
      Aug 16 14:18:46 NAS-OMV smbd[2028]: [2014/08/16 14:18:46.075915, 1] smbd/service.c:678(make_connection_snum)
      Aug 16 14:18:46 NAS-OMV smbd[2028]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
    • Let me have a fresh look at it tomorrow, maybe some of us Mods can connect via Teamviewer and spot why it isn't working correct.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Since Samba is basically a package for facilitating transfers between Linux and Windows, I never even thought to test it in Linux. Ubuntu works fine, so it seems to be a Windows related issue.

      I'll probably be able to narrow it down now and let everyone know what it was. Seems funny that a lot of people aren't having the same issues. It affects 3 computers in my home running Windows 7/8 and 8.1
    • As I said, Windows is mostly like confused by some of your configuration or is caching something which it is not suppesed to do.

      Let tekkbebe or me have a peek via Teamviewer, thats mostly the fastest way to figure that out.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Yeah we can get a teamviewer session going. When is best for you?

      The error in the syslog has changed to this:
      Aug 17 16:56:02 NAS-OMV smbd[22933]: [2014/08/17 16:56:02.731191, 2] smbd/service.c:587(create_connection_server_info)
      Aug 17 16:56:02 NAS-OMV smbd[22933]: guest user (from session setup) not permitted to access this share (cloud)
      Aug 17 16:56:02 NAS-OMV smbd[22933]: [2014/08/17 16:56:02.731277, 1] smbd/service.c:678(make_connection_snum)
      Aug 17 16:56:02 NAS-OMV smbd[22933]: create_connection_server_info failed: NT_STATUS_ACCESS_DENIED

      Not sure what caused the change, but the reference to "guest user" seems a little weird.
    • I made the changes I found here:
      getnosleep.blogspot.ca/2009/12…acifs-access-windows.html

      It works... so far. I've had it work then stop working before, so I'm dubious. We'll see how it goes, but at least this will give anyone else that finds the thread in a search some hope.

      Source Code

      1. Copy and paste the following text into a text file with the extension .reg, for example win7smbfix.reg:
      2. Windows Registry Editor Version 5.00
      3. ; Reference: http://wiki.samba.org/index.php/Windows7
      4. [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]
      5. "DNSNameResolutionRequired"=dword:00000000
      6. "DomainCompatibilityMode"=dword:00000001
      7. ; Reference: http://www.tannerwilliamson.com/2009/09/windows-7-seven-network-file-sharing-fix-samba-smb/
      8. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
      9. "LmCompatibilityLevel"=dword:00000001
      10. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0]
      11. "NtlmMinClientSec"=dword:00000000
      12. "NtlmMinServerSec"=dword:00000000
      13. then double click on the file to add the registry keys to your Windows registry. Next, reboot and try to map the shares as your drives.
      Display All
    • If you got it working now, good. If you still need help, from 18-23 german time. ;)

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.