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

本机存储: 设置770权限创建文件夹,但是创建的文件夹的权限是750 #7886

Open
4 tasks done
OH016 opened this issue Jan 27, 2025 · 3 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@OH016
Copy link

OH016 commented Jan 27, 2025

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.41.0

Driver used / 使用的存储驱动

本机存储

Describe the bug / 问题描述

设置770权限创建文件夹,但是创建的文件夹的权限是750

Reproduction / 复现链接

我的是局域网部署

Image

Image

Config / 配置

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "ahbJqb1CGNebdixE",
  "token_expires_in": 48,
  "database": {
    "type": "sqlite3",
    "host": "",
    "port": 0,
    "user": "",
    "password": "",
    "name": "",
    "db_file": "/home/oh016/.config/alist/data.db",
    "table_prefix": "x_",
    "ssl_mode": "",
    "dsn": ""
  },
  "meilisearch": {
    "host": "http://localhost:7700",
    "api_key": "",
    "index_prefix": ""
  },
  "scheme": {
    "address": "0.0.0.0",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": ""
  },
  "temp_dir": "/home/oh016/.config/alist/temp",
  "bleve_dir": "/home/oh016/.config/alist/bleve",
  "dist_dir": "",
  "log": {
    "enable": true,
    "name": "/home/oh016/.config/alist/log/log.log",
    "max_size": 50,
    "max_backups": 30,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 0,
  "tls_insecure_skip_verify": true,
  "tasks": {
    "download": {
      "workers": 5,
      "max_retry": 1,
      "task_persistant": true
    },
    "transfer": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": true
    },
    "upload": {
      "workers": 5,
      "max_retry": 0,
      "task_persistant": false
    },
    "copy": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": true
    }
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  },
  "s3": {
    "enable": false,
    "port": 5246,
    "ssl": false
  },
  "ftp": {
    "enable": false,
    "listen": ":5221",
    "find_pasv_port_attempts": 50,
    "active_transfer_port_non_20": false,
    "idle_timeout": 900,
    "connection_timeout": 30,
    "disable_active_mode": false,
    "default_transfer_binary": false,
    "enable_active_conn_ip_check": true,
    "enable_pasv_conn_ip_check": true
  },
  "sftp": {
    "enable": false,
    "listen": ":5222"
  }
}

储存配置:

Image

Logs / 日志

No response

@OH016 OH016 added the bug Something isn't working label Jan 27, 2025
@YangRucheng
Copy link
Contributor

我这怎么是 750 😂

Image

Image

@Jason-Fly
Copy link
Contributor

这是因为系统的umask值影响了最终的权限设置。在Unix/Linux系统中,新建文件或目录的实际权限是通过将请求的权限值与umask的补码进行AND运算得到的。

Image

@OH016
Copy link
Author

OH016 commented Feb 1, 2025

我这怎么是 750 😂

Image

Image

是750看错了😅

@OH016 OH016 changed the title 本机存储: 设置770权限创建文件夹,但是创建的文件夹的权限是740 本机存储: 设置770权限创建文件夹,但是创建的文件夹的权限是750 Feb 1, 2025
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

3 participants