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

User=nobody is discouraged by systemd. #30

Open
OrvilleQ opened this issue Sep 11, 2021 · 0 comments
Open

User=nobody is discouraged by systemd. #30

OrvilleQ opened this issue Sep 11, 2021 · 0 comments

Comments

@OrvilleQ
Copy link

OrvilleQ commented Sep 11, 2021

systemd/systemd@bed0b7d

从 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.

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