外部HDD nextcloud容器的权限 [英] Permissions for external HDD nextcloud container

查看:103
本文介绍了外部HDD nextcloud容器的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天.

我正尝试将NC19服务器迁移到容器中.

到目前为止,我可以安装容器并将持久性驱动器映射到主机的驱动器,但是当我尝试使用外部HDD时,会在日志中看到以下错误信息:

**初始化nextcloud 19.0.2.2

rsync:chown"/var/www/html/data"失败:不允许的操作(1)

rsync错误:在main.c(1207)[sender = 3.1.3] **上未传输某些文件/文件(请参阅先前的错误)(代码23)

这很可能是权限问题,但是当以root身份安装HDD并以root:root或www-data:www-data的身份授予对外部驱动器/media/ncd的访问权限时,出现上述错误./p>

现在,外部hdd文件系统已运行(不确定是否会影响容器).

有什么主意我可以克服吗?

我即将将我的硬盘格式化为ext4,以查看是否可以解决此问题.

预先感谢

解决方案

通过将文件系统从ExFat更改为ext4即可解决此问题

good day.

im trying to migrate my NC19 server to a container.

so far i can install the container and map a persistent drive to the host’s drive but when i try to use an external HDD i get the following erros on the log:

**Initializing nextcloud 19.0.2.2

rsync: chown "/var/www/html/data" failed: Operation not permitted (1)

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]**

this is more than likely a permissions issue, but when mounting the HDD as root and granting access to the external drive /media/ncd as root:root or as www-data:www-data i get the above error.

now, the external hdd file system is exfat (not sure if this will affect on the container).

any ideas how can i get past this?

im close to format my hdd as ext4 to see if this fixes it.

thanks in advance

解决方案

just got this fixed by changing the filesystem from ExFat to ext4

这篇关于外部HDD nextcloud容器的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆