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

DynamicUser=yes代替User=nobody #54

Open
Lorilandly opened this issue Mar 9, 2023 · 1 comment
Open

DynamicUser=yes代替User=nobody #54

Lorilandly opened this issue Mar 9, 2023 · 1 comment

Comments

@Lorilandly
Copy link

新版本的systemd不再推荐使用nobody用户。当使用nobody用户的时候systemd的日志以及dmesg里会出现以下报错

Special user nobody configured, this is not safe!

systemd官方的解决方案为使用DynamicUser=yes代替

详见commit

@Lorilandly
Copy link
Author

还有systemd配置文件里可以加一行LogsDirectory=xray,这样systemd会自动把log目录的权限配置好,用户就不会再碰到log相关的权限问题了

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

1 participant