【问题标题】:How can I set permissions for mounted azure fileshare?如何为已安装的 azure 文件共享设置权限?
【发布时间】:2021-10-17 14:45:28
【问题描述】:

我想在 Azure 容器实例上部署 NextCloud。我能够像这样使用 Azure CLI 设置容器组:

az container create 
  --resource-group NextCloud 
  --name nextcloudcontainer 
  --image nextcloud 
  --dns-name-label somelabel
  --ports 80 443 
  --azure-file-volume-account-name myaccountname
  --azure-file-volume-account-key myaccountkey 
  --azure-file-volume-share-name nextcloudfs 
  --azure-file-volume-mount-path /var/lib/nextcloud/ 
  --os-type Linux 
  --cpu 1 
  --memory 2 
  --location germanywestcentral 
  --restart-policy OnFailure

问题是,驱动器/var/lib/nextcloud/ 安装的权限为 777,但对于 nextcloud,我需要 770。这不能在之后使用 chmod 更改,只能在部署时更改。这是如何实现的?

我看到了这个post,但我不明白,如何做到这一点,就像重新启动容器一样,我每次都必须手动执行。

【问题讨论】:

    标签: azure-storage azure-container-instances


    【解决方案1】:

    有一种方法可以在装载时使用装载参数文件模式和目录模式更改 Azure 文件中的权限。但是在 ACI 中,我们在 ACI 中没有那种灵活性来更改参数。我们知道这个请求并正在处理它。

    【讨论】:

    • 如果 CLI 还不能工作,目前有什么工具集可以实现这个结果?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-05-03
    • 2014-05-20
    • 2011-12-07
    • 1970-01-01
    • 2021-01-11
    • 1970-01-01
    相关资源
    最近更新 更多