Xray-install icon indicating copy to clipboard operation
Xray-install copied to clipboard

用`DynamicUser=yes`代替`User=nobody`

Open Lorilandly opened this issue 2 years ago • 1 comments

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

Special user nobody configured, this is not safe!

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

详见commit

Lorilandly avatar Mar 09 '23 09:03 Lorilandly

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

Lorilandly avatar Mar 09 '23 11:03 Lorilandly