DynamicUser=yes代替User=nobody #54

Open
opened 2023-03-09 04:53:53 -05:00 by Lorilandly · 1 comment
Lorilandly commented 2023-03-09 04:53:53 -05:00 (Migrated from github.com)

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

Special user nobody configured, this is not safe!

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

详见commit

新版本的systemd不再推荐使用`nobody`用户。当使用nobody用户的时候systemd的日志以及`dmesg`里会出现以下报错 ``` Special user nobody configured, this is not safe! ``` systemd官方的解决方案为使用`DynamicUser=yes`代替 详见[commit](https://github.com/systemd/systemd/commit/bed0b7dfc0070e920d00c89d9a4fd4db8d974cf0)
Lorilandly commented 2023-03-09 06:10:44 -05:00 (Migrated from github.com)

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

还有`systemd`配置文件里可以加一行`LogsDirectory=xray`,这样`systemd`会自动把log目录的权限配置好,用户就不会再碰到log相关的权限问题了
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
XTLS/Xray-install#54
No description provided.