Giter Club home page Giter Club logo

Comments (8)

pymumu avatar pymumu commented on July 1, 2024

是不是你的日志文件也设置输出到/etc/smartdns了?

from smartdns.

scruel avatar scruel commented on July 1, 2024

没有,配置就是上面那些,我是单独测试的

from smartdns.

pymumu avatar pymumu commented on July 1, 2024

smartdns除了会修改日志目录, cache目录的权限和属组,不会修改其他任何目录文件的权限,
排查下其他软件看看吧。

from smartdns.

scruel avatar scruel commented on July 1, 2024

没有其他软件的,这是服务器上跑的,上述配置是就是可复现的配置,可以确定是 smartdns 所为。
按您的回复,配置 cache-file /etc/smartdns/cache 则会修改挂载的 ./ 的权限,倒可算是预期行为了,conf-file 晚些时候我再二次测试确认,不过是否有可能能禁用掉这个权限修改的逻辑?

from smartdns.

PikuZheng avatar PikuZheng commented on July 1, 2024
localhost:~# mkdir /userdata/smartdns/conf
localhost:~# touch /userdata/smartdns/conf/app.ini
localhost:~# chown -R 999:users /userdata/smartdns/conf
localhost:~# ls -l /userdata/smartdns/conf/
total 0
-rw-r--r--    1 999      users            0 Jun 18 10:56 app.ini
localhost:~# docker restart smartdns
smartdns
localhost:~# ls -l /userdata/smartdns/conf/
total 0
-rw-r--r--    1 999      users            0 Jun 18 10:56 app.ini

在我这里不能复现。顺便说一下我用docker但不用compose

from smartdns.

PikuZheng avatar PikuZheng commented on July 1, 2024
 - ./:/etc/smartdns

隔壁群里有人说挂载点使用相对路径就会有owner被改变的情况,改成绝对路径就好了。我没试,仅供参考

from smartdns.

scruel avatar scruel commented on July 1, 2024

了解,晚点我来试试

from smartdns.

scruel avatar scruel commented on July 1, 2024

测试 conf-file 不会修改权限,cache-file 则按预期修改了权限,将 cache 改为子目录后无问题。
建议增加一下文档,让用户注意创建一个新文件夹来放置 cache file,而不是将其放在任意地方,从而导致奇怪的权限修改问题。

from smartdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.