From a3733786915304884ccf83c192b27e9eb0812357 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 22 Apr 2026 01:22:05 +0200 Subject: [PATCH] Fix: Use full path for 'net' command in Samba config reading subprocess needs full path to executable when PATH is not set. Use /usr/bin/net instead of 'net'. Co-Authored-By: Patrick --- backend/services/shares.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/shares.py b/backend/services/shares.py index 3d47f35..338ed0b 100644 --- a/backend/services/shares.py +++ b/backend/services/shares.py @@ -183,7 +183,7 @@ class SharesManager: """Read Samba global configuration from registry using 'net conf list'""" try: result = subprocess.run( - ['net', 'conf', 'list'], + ['/usr/bin/net', 'conf', 'list'], capture_output=True, text=True, timeout=10