anon has Samba write access

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • anon has Samba write access

      Hi all, I'm having some permission issues with a share. I'm sorry if I'm rehashing a common issue, I didn't find this in my search.


      I have created a share, and two id's, one has read write access, one has read only.

      Here's the settings I'm using:
      imgur.com/gallery/gmzLC


      The only problem is I can write when not logged in at all, and I don't need to login if I use the IP.

      if I go to \\odroid\major\ I'm prompted for a password, and I won't be let in until I give it one. login as guest IS read only. login as general lets me write - that's what I'd expect.

      If I use an IP directly, and I go to \\192.168.1.42\major\ I'm able to access it directly, with write capability, without login!



      if it helps here's my smb.conf

      Source Code

      1. root@odroid:/etc/samba# cat smb.conf
      2. #======================= Global Settings =======================
      3. [global]
      4. workgroup = WORKGROUP
      5. server string = %h server
      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. use sendfile = yes
      31. aio read size = 16384
      32. aio write size = 16384
      33. null passwords = no
      34. local master = yes
      35. time server = no
      36. wins support = no
      37. #======================= Share Definitions =======================
      38. [major]
      39. path = /media/64D042FBD042D2CA/major/
      40. guest ok = no
      41. read only = no
      42. browseable = no
      43. inherit acls = yes
      44. inherit permissions = no
      45. ea support = no
      46. store dos attributes = no
      47. printable = no
      48. create mask = 0755
      49. force create mode = 0644
      50. directory mask = 0755
      51. force directory mode = 0755
      52. hide dot files = yes
      53. valid users = "general","guest"
      54. invalid users =
      55. read list = "guest"
      56. write list = "general"
      Display All