Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xhofe/alist-aria2镜像使用非root用户时aria2有目录权限问题 #7296

Open
4 tasks done
hzj629206 opened this issue Oct 5, 2024 · 1 comment
Open
4 tasks done
Labels
bug Something isn't working

Comments

@hzj629206
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.37.4

Driver used / 使用的存储驱动

N.A

Describe the bug / 问题描述

xhofe/alist-aria2 镜像使用非 root 用户时 aria2 有目录权限问题

如果用 PUID 和 PGID 环境变量指定非 root 用户的 UID 和 GID,entrypoint.sh 里面启动 aria2 的命令会报错,aria2 无法正常启动。

这里因为 aria2 需要读写 /root 目录,默认情况下其它用户没有访问权限。
可以在 Dockfile 里面用以下命令授权。

chmod a+x /root
chmod -R a+r,a+w /root/.aria2c

Reproduction / 复现链接

N.A

Config / 配置

N.A

Logs / 日志

No response

@hzj629206 hzj629206 added the bug Something isn't working label Oct 5, 2024
Copy link

welcome bot commented Oct 5, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant