浏览代码

fixed win10 share samba

novaspirit 3 年之前
父节点
当前提交
295c57b704
共有 3 个文件被更改,包括 18 次插入3 次删除
  1. 6 1
      pi-hosted_template/template/portainer-v2.json
  2. 6 1
      template/portainer-v2-arm32.json
  3. 6 1
      template/portainer-v2-arm64.json

+ 6 - 1
pi-hosted_template/template/portainer-v2.json

@@ -3880,7 +3880,7 @@
 				"139:139/tcp",
 				"445:445/tcp"
 			],
-			"command": "-s 'portainer;/share;yes;no;yes'",
+			"command": "-s 'portainer;/share;yes;no;yes;guest' -g 'map to guest = never' -g 'restrict anonymous = 2'",
 			"restart_policy": "unless-stopped",
 			"title": "Samba",
 			"type": 1,
@@ -3891,6 +3891,11 @@
 					"label": "PUID",
 					"name": "PUID"
 				},
+				{
+					"default": "guest:guest",
+					"label": "USER",
+					"name": "USER"
+				},
 				{
 					"default": "1000",
 					"label": "PGID",

+ 6 - 1
template/portainer-v2-arm32.json

@@ -3880,7 +3880,7 @@
 				"139:139/tcp",
 				"445:445/tcp"
 			],
-			"command": "-s 'portainer;/share;yes;no;yes'",
+			"command": "-s 'portainer;/share;yes;no;yes;guest' -g 'map to guest = never' -g 'restrict anonymous = 2'",
 			"restart_policy": "unless-stopped",
 			"title": "Samba",
 			"type": 1,
@@ -3891,6 +3891,11 @@
 					"label": "PUID",
 					"name": "PUID"
 				},
+				{
+					"default": "guest:guest",
+					"label": "USER",
+					"name": "USER"
+				},
 				{
 					"default": "1000",
 					"label": "PGID",

+ 6 - 1
template/portainer-v2-arm64.json

@@ -3920,7 +3920,7 @@
 				"139:139/tcp",
 				"445:445/tcp"
 			],
-			"command": "-s 'portainer;/share;yes;no;yes'",
+			"command": "-s 'portainer;/share;yes;no;yes;guest' -g 'map to guest = never' -g 'restrict anonymous = 2'",
 			"restart_policy": "unless-stopped",
 			"title": "Samba",
 			"type": 1,
@@ -3931,6 +3931,11 @@
 					"label": "PUID",
 					"name": "PUID"
 				},
+				{
+					"default": "guest:guest",
+					"label": "USER",
+					"name": "USER"
+				},
 				{
 					"default": "1000",
 					"label": "PGID",