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:

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


    stat:

    Code
    root@NAS-OMV:/media/95cc7417-ca5c-4041-85bc-5d67e76f0da8# stat cloud
      File: `cloud'
      Size: 4096            Blocks: 8          IO Block: 4096   directory
    Device: 811h/2065d      Inode: 46006273    Links: 7
    Access: (2775/drwxrwsr-x)  Uid: (65534/  nobody)   Gid: (  100/   users)
    Access: 2014-08-15 22:29:13.864207246 -0700
    Modify: 2014-08-15 10:25:31.907985486 -0700
    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?

  • 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!

  • 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.

  • I've searched everything I can think of that's relevant.


    How can I clear the ACL flag from my shared folder? Not having much google success with that one.


    edit: oop, found it. setfacl -b

  • I have everything set to 775 for the file permissions. ACL is not in use as far as I can tell and the smb.conf is just like above (minus that extra /).


    Still not working right. Totally stumped

  • 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!

  • 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!

  • 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

  • Wow, 2 more hours and I've still got nothing. I managed to get it to authenticate ONCE about an hour and a half ago but once I rebooted both machine to make sure it was working right I couldn't reproduce it.


    Linux connections are working 100%. Windows, zero.

  • 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!

  • 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:
    http://getnosleep.blogspot.ca/…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.


  • 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!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!