Browse Source

Merge pull request #34 from goetzk/control-share-browsing

Control if shares are browseable or not
master
Bert Van Vreckem 3 years ago
committed by GitHub
parent
commit
c9bac40925
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      README.md
  2. 3
      templates/smb.conf.j2

1
README.md

@ -151,6 +151,7 @@ A complete overview of share options follows below. Only `name` is required, the
| Option | Default | Comment |
| :--- | :--- | :--- |
| `browseable` | - | Controls whether this share appears in file browser. |
| `comment` | - | A comment string for the share |
| `create_mode` | `0664` | See the Samba documentation for details. |
| `directory_mode` | `0775` | See the Samba documentation for details. |

3
templates/smb.conf.j2

@ -126,6 +126,9 @@
{% if share.guest_ok is defined %}
guest ok = {{ share.guest_ok }}
{% endif %}
{% if share.browseable is defined %}
browseable = {{ share.browseable }}
{% endif %}
{% if share.writable is defined %}
writable = {{ share.writable }}
{% endif %}

Loading…
Cancel
Save