Invisible symlink do not display guest account

    • OMV 3.x
    • Resolved
    • Invisible symlink do not display guest account

      Hello everyone,


      I need help for configure my NAS samba share, I want to have access to a share without account. But I have a problem with symbolic links.
      The access is readonly, here is the config of the share:

      Source Code

      1. [Media]
      2. path = /srv/dev-disk-by-label-DATA/media
      3. guest ok = yes
      4. guest only = yes
      5. read only = yes
      6. browseable = yes
      7. inherit acls = no
      8. inherit permissions = no
      9. ea support = no
      10. store dos attributes = no
      11. vfs objects =
      12. printable = no
      13. create mask = 0664
      14. force create mode = 0664
      15. directory mask = 0775
      16. force directory mode = 0775
      17. hide special files = yes
      18. follow symlinks = yes
      19. hide dot files = yes
      Display All
      The symlinks do not appear in this share.
      I done a chmod 777 -R to /srv/dev-disk-by-label-DATA/media
      and to /srv/dev-disk-by-label-8T/media (the dest dir of symlinks



      Here is another share accesssible with xxx user, symlinks works perfectly.

      Source Code

      1. [Data]
      2. path = /srv/dev-disk-by-label-DATA
      3. guest ok = no
      4. read only = no
      5. browseable = yes
      6. inherit acls = no
      7. inherit permissions = no
      8. ea support = no
      9. store dos attributes = no
      10. vfs objects =
      11. printable = no
      12. create mask = 0664
      13. force create mode = 0664
      14. directory mask = 0775
      15. force directory mode = 0775
      16. hide special files = yes
      17. follow symlinks = yes
      18. hide dot files = yes
      19. valid users = "xxx"
      20. invalid users =
      21. read list =
      22. write list = "xxx"
      Display All
      Here is all my config:

      Source Code

      1. #======================= Global Settings =======================
      2. [global]
      3. workgroup = WORKGROUP
      4. server string = %h server
      5. dns proxy = no
      6. log level = 0
      7. syslog = 0
      8. log file = /var/log/samba/log.%m
      9. max log size = 1000
      10. syslog only = yes
      11. panic action = /usr/share/samba/panic-action %d
      12. encrypt passwords = true
      13. passdb backend = tdbsam
      14. obey pam restrictions = no
      15. unix password sync = no
      16. passwd program = /usr/bin/passwd %u
      17. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      18. pam password change = yes
      19. socket options = TCP_NODELAY IPTOS_LOWDELAY
      20. guest account = nobody
      21. load printers = no
      22. disable spoolss = yes
      23. printing = bsd
      24. printcap name = /dev/null
      25. unix extensions = no
      26. wide links = yes
      27. create mask = 0777
      28. directory mask = 0777
      29. map to guest = Bad User
      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. [Media]
      39. path = /srv/dev-disk-by-label-DATA/media
      40. guest ok = yes
      41. guest only = yes
      42. read only = yes
      43. browseable = yes
      44. inherit acls = no
      45. inherit permissions = no
      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. [MediaM]
      58. path = /srv/dev-disk-by-label-8T/media
      59. guest ok = yes
      60. guest only = yes
      61. read only = yes
      62. browseable = yes
      63. inherit acls = no
      64. inherit permissions = no
      65. ea support = no
      66. store dos attributes = no
      67. vfs objects =
      68. printable = no
      69. create mask = 0664
      70. force create mode = 0664
      71. directory mask = 0775
      72. force directory mode = 0775
      73. hide special files = yes
      74. follow symlinks = yes
      75. hide dot files = yes
      76. [Data]
      77. path = /srv/dev-disk-by-label-DATA
      78. guest ok = no
      79. read only = no
      80. browseable = yes
      81. inherit acls = no
      82. inherit permissions = no
      83. ea support = no
      84. store dos attributes = no
      85. vfs objects =
      86. printable = no
      87. create mask = 0664
      88. force create mode = 0664
      89. directory mask = 0775
      90. force directory mode = 0775
      91. hide special files = yes
      92. follow symlinks = yes
      93. hide dot files = yes
      94. valid users = "xxx"
      95. invalid users =
      96. read list =
      97. write list = "xxx"
      98. [Arch]
      99. path = /srv/dev-disk-by-label-8T
      100. guest ok = no
      101. read only = no
      102. browseable = yes
      103. inherit acls = no
      104. inherit permissions = no
      105. ea support = no
      106. store dos attributes = no
      107. vfs objects =
      108. printable = no
      109. create mask = 0664
      110. force create mode = 0664
      111. directory mask = 0775
      112. force directory mode = 0775
      113. hide special files = yes
      114. follow symlinks = yes
      115. hide dot files = yes
      116. valid users = "xxx"
      117. invalid users =
      118. read list =
      119. write list = "xxx"
      Display All

      Anybody have ideas of what cause to not display a+rwx symlinks and files please?
      Thanks you per advance

      The post was edited 2 times, last by hotmykeul ().

    • subzero79 wrote:

      You cannot use symlink outside of share in samba unless you authorize it in the configuration.

      samba.org/samba/docs/using_sam…html#samba2-CHP-8-TABLE-1
      Hello subzero thank you but I already done it:
      1. unix extensions = no
      2. wide links = yes
      Added into environnement variables

      Symlinks works perfectly in Data share when I logged in.

      I resolved my problem, it was permission on /srv/dev-disk-by-label-8T/, o+rx resolved the problem.
    • Users Online 1

      1 Guest