Comments (8)
是不是你的日志文件也设置输出到/etc/smartdns了?
from smartdns.
没有,配置就是上面那些,我是单独测试的
from smartdns.
smartdns除了会修改日志目录, cache目录的权限和属组,不会修改其他任何目录文件的权限,
排查下其他软件看看吧。
from smartdns.
没有其他软件的,这是服务器上跑的,上述配置是就是可复现的配置,可以确定是 smartdns 所为。
按您的回复,配置 cache-file /etc/smartdns/cache
则会修改挂载的 ./
的权限,倒可算是预期行为了,conf-file
晚些时候我再二次测试确认,不过是否有可能能禁用掉这个权限修改的逻辑?
from smartdns.
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.
- ./:/etc/smartdns
隔壁群里有人说挂载点使用相对路径就会有owner被改变的情况,改成绝对路径就好了。我没试,仅供参考
from smartdns.
了解,晚点我来试试
from smartdns.
测试 conf-file 不会修改权限,cache-file 则按预期修改了权限,将 cache 改为子目录后无问题。
建议增加一下文档,让用户注意创建一个新文件夹来放置 cache file,而不是将其放在任意地方,从而导致奇怪的权限修改问题。
from smartdns.
Related Issues (20)
- domain-rules的group参数问题 HOT 5
- speed-check-mode使用问题 HOT 34
- CNAME doesn't follow domain-rules HOT 4
- nft 添加 ipset 错误 HOT 5
- 网赌被黑了不给提款怎么办?解决微:lyh20085150 HOT 2
- 软路由运行4天后 Smartdns卡死崩溃 HOT 5
- 配置文件支持相对路径 HOT 3
- 设置成非53端口不能生效 HOT 1
- 223.5.5.5/dns-query支持h3吗 在我这里测试一直是h2 运营商dns可以h3 HOT 2
- 切换WLAN导致DNS查询失败
- 关于指定域名集合到特定一个ip解析的问题 HOT 3
- nftset.h 封装求助 HOT 18
- ttl 的默认值不正常 HOT 19
- 测试发现强解析存在bug HOT 3
- 无法获取新域名的 HOT 18
- 【正则匹配】域名规则有没有可能支持正则配置?
- doh支持使用特定token限制访问
- 用户日志能否支持功能调用IP识别运营商接口nali
- 定义了组名的服务器没有从默认组中排除 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartdns.