跳到主要内容

配置向 CIFS 用户授予 Linux 组权限

可配置此选项以授予访问文件或目录的组权限,即使传入的 CIFS 用户不是将文件的所有者。

  1. 将权限级别设置为高级:set -privilege advanced
  2. 根据需要配置授予的 Linux 组权限:
    如果要...请输入命令
    启用对文件或目录的访问以获取组权限,即使用户不是该文件的所有者vserver cifs options modify –grant-unix-group-perms-to-others true
    禁用对文件或目录的访问以获取组权限,即使用户不是该文件的所有者vserver cifs options modify –grant-unix-group-perms-to-others false
  3. 验证该选项是否已设置为所需的值:vserver cifs options show –fields grant-unix-group-perms-to-others
  4. 恢复为管理员权限级别:set -privilege admin