From 32dbba592cac5bc19bde04330299afe875234a14 Mon Sep 17 00:00:00 2001 From: Pan Guo Feng Date: Sat, 31 Jan 2026 20:47:05 +0900 Subject: [PATCH] Fix key names in samba_utils.py for consistency I am not professional , but I was not able to have a usable(valid) saved shares from the Samba Manager. Some internal settings(keys) are also exported to shares.conf like 'valid_users_list', 'valid_groups_list', 'write_users_list', 'write_groups_list' . Please consider to keep them , if necessary, to another configuration file. --- app/samba_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/samba_utils.py b/app/samba_utils.py index e359852..c32c00c 100755 --- a/app/samba_utils.py +++ b/app/samba_utils.py @@ -935,11 +935,11 @@ def save_shares(shares): "comment": "comment", "browseable": "browseable", "read_only": "read only", - "guest ok": "guest ok", + "guest_ok": "guest ok", "valid_users": "valid users", - "write list": "write list", + "write_list": "write list", "create_mask": "create mask", - "directory mask": "directory mask", + "directory_mask": "directory mask", "force_group": "force group", "max_connections": "max connections", }