diff options
Diffstat (limited to 'roles/samba')
-rw-r--r-- | roles/samba/defaults/main.yml | 4 | ||||
-rw-r--r-- | roles/samba/templates/smb.conf.j2 | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/roles/samba/defaults/main.yml b/roles/samba/defaults/main.yml index d032b7f..988ba72 100644 --- a/roles/samba/defaults/main.yml +++ b/roles/samba/defaults/main.yml @@ -1,2 +1,6 @@ #samba_share_dir: #samba_share_name: + +# Specify this if you want to get basically the same access to the share as +# this account (as opposed to `nobody` and read-only permissions): +#samba_guest_account: diff --git a/roles/samba/templates/smb.conf.j2 b/roles/samba/templates/smb.conf.j2 index 00ef87b..4b7805a 100644 --- a/roles/samba/templates/smb.conf.j2 +++ b/roles/samba/templates/smb.conf.j2 @@ -5,6 +5,10 @@ [global] logging = syslog map to guest = Bad user +{% if samba_guest_account %} +{# Otherwise, it's `nobody`, and you will, most likely, get read access only. #} + guest account = {{ samba_guest_account }} +{% endif %} server role = standalone server auto services = {{ samba_share_name }} |