> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/run-the-platform/zh/nas/nas-shares.md).

# 共享

可以创建共享以提供对 NAS 卷的 NFS 和/或 CIFS 访问。

{% hint style="success" %}
**可以为单个卷创建多个共享，以为不同用户组提供不同的安全性或不同的访问权限。**
{% endhint %}

## 创建 NFS 共享

1. 在云仪表板中，选择 **NAS** 左侧菜单中的。
2. 选择 **卷** 左侧菜单中的。
3. 双击所需的 **卷** 在列表中显示卷仪表板。
4. 选择 **NFS 共享** 左侧菜单中的。
5. 选择 **新建** 左侧菜单中的。
6. 输入一个 ***名称*** 用于新的 NFS 共享（必填）。
7. 输入一个 ***共享路径*** （或留空以共享整个卷）。
8. 输入一个 ***描述*** 用于共享（可选）。
9. 该 ***允许所有人*** 可选中该复选框以允许所有主机
10. 指定一个或多个 ***允许的主机*** 仅允许特定机器访问。主机可以通过 IP 地址或 FQDN 指定；可使用通配符允许整个域，例如：\*.companyabc.com。
11. 可选地，可以指定 ***文件系统 ID*** 可以指定。
12. 从列表中选择所需的 ***数据访问*** 从下拉列表中选择（只读或读写）。
13. 选择 ***用户/组压缩*** 选项
    * ***不压缩（默认）***
    * ***压缩 Root***
    * ***压缩所有***

{% hint style="info" %}
**用户/Root 压缩是一项安全功能，它会根据客户端机器上用户的 UID 拒绝特殊访问权限；也就是说，客户端（连接）计算机上的用户 ID 不会决定该共享上的权限。**
{% endhint %}

13. 请指定 ***匿名用户 ID*** （可选）。匿名连接的用户将获得此处指定的 ID 的权限级别。
14. 请指定 ***匿名组 ID*** （可选）。匿名连接的用户将以此处指定的组成员身份运行。
15. 该 ***异步*** 可选此选项以提高性能。但是，如果服务器非正常重启，在启用异步选项时，存在数据损坏/丢失的风险。
16. 可选地， ***无 ACL*** 可选此选项以禁用 ACL（访问控制列表）。
17. 单击 **提交** 以保存设置并创建新的 NFS 共享。

## 创建 CIFS 共享

1. 在云仪表板中，选择 **NAS** 左侧菜单中的。
2. 选择 **卷** 左侧菜单中的。
3. 选择 **CIFS 共享** 左侧菜单中的。
4. 选择 **新建** 左侧菜单中的。
5. 输入一个 ***名称*** 用于新的 CIFS 共享（必填）。
6. 输入一个 ***共享路径*** （或留空以共享整个卷）。
7. 可选地，可以指定 ***描述*** 可输入用于该共享的
8. 输入一个 ***备注*** 用于共享（可选）。
9. 请为 ***有效用户*** 列表（可选）。每行列出一个用户。
10. 请为 ***有效组*** 列表（可选）。每行列出一个组。
11. 指定一个 ***允许的主机*** 列表（可选）。每行一个主机。主机名、IP 地址、域名、netgroup 和子网均为有效条目。
12. 请为 ***拒绝的主机*** 列表（可选）。每行一个主机。主机名、IP 地址、域名、netgroup 和子网均为有效条目。
13. 该 ***只读*** 可选此选项以拒绝通过此共享进行的任何写操作。
14. 该 ***可浏览*** 可选此选项以使共享在可用共享列表中可见。此选项默认禁用。
15. 指定一个 ***管理员用户*** （可选）。
16. 一个 ***强制用户选项 / 强制组选项*** 可指定为定义一个用户或组，该用户或组将用于通过此共享执行的所有文件操作（无论用于连接的用户帐户是什么）。
17. ***高级配置选项（高级 samba 共享选项）*** 可用于处理特殊情况。（仅限高级用户；如需帮助，请咨询 VergeOS 支持。）
18. 单击 **提交** 以保存设置并创建新的 CIFS 共享。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/run-the-platform/zh/nas/nas-shares.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
