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

audit-file 设置自定义保存路径无效 #1721

Open
xiaof520 opened this issue Apr 16, 2024 · 3 comments
Open

audit-file 设置自定义保存路径无效 #1721

xiaof520 opened this issue Apr 16, 2024 · 3 comments

Comments

@xiaof520
Copy link

xiaof520 commented Apr 16, 2024

问题现象
audit-file 设置自定义保存路径无效,没有生成文件。非root用户,设置 audit-file-mode 777也不行,log-file 也是一样。
不设置这两项时/var/log/smartdns/里有日志。 查看日志,里面没有错误 警告信息

运行环境
wsl debian

audit-enable yes
audit-file /home/user/log/smartdns-audit.log
audit-file-mode 644

@PikuZheng
Copy link
Contributor

/home/user/是不是挂到wsl外了?可能是Windows acl在阻止文件读写。wsl的文件权限和正常的linux有些许不同,建议到wsl那边问问

@PikuZheng
Copy link
Contributor

也可能smartdns运行用户不是wsl建debian的默认用户

@xiaof520
Copy link
Author

也可能smartdns运行用户不是wsl建debian的默认用户

谢谢,我再检查试试看。没有外挂,apt install smartdns 40版本是正常的,但40版本不支持nftset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants