From 27bf0276a2240493921c356bf98d2fc85f428be9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 9 May 2025 18:20:09 +0200 Subject: samba: set guest account --- roles/samba/templates/smb.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/samba/templates/smb.conf.j2') 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 }} -- cgit v1.2.3