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

User=nobody is discouraged by systemd.

Open OrvilleQ opened this issue 4 years ago • 0 comments

见 https://github.com/systemd/systemd/commit/bed0b7dfc0070e920d00c89d9a4fd4db8d974cf0 。

从 Systemd v246-rc1 起 Systemd 不再鼓励在 Service File 中使用 User=nobody,并且会显示以下错误提示。

Special user nobody configured, this is not safe!

也许我们应该用 DynamicUser=1 来替换它,或为程序专门分配一个系统用户和系统组。

It is strongly recommended to avoid running services under this user identity, in particular on systems using NFS or running containers. Allocate a user ID specific to this service, either statically via systemd-sysusers or dynamically via the DynamicUser= service setting.

OrvilleQ avatar Sep 11 '21 09:09 OrvilleQ