build: Remove cockpit(-ws-instance) user/group config option #20402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All distributions use the same value anyway, and this paves the way for unifying them further with moving to systemd-sysusers.
We never test the upstream default of running them as root, so it might not even work and we also don't want to support/encourage that.
Broken out of #20365 and fixed. I want to test/land this separately, as it's quite intrusive.
@travier FYI
The release note also covers the changes from #20425 and #20447.
webserver: System user changes
This release drops the
./configure
options for customizing the two system users of cockpit's web server:--with-cockpit-user
,--with-cockpit-group
,--with-cockpit-ws-instance-user
, and--with-cockpit-ws-instance-user
. All supported distributions use the same name anyway. We don't test, support, or recommend running the web server as root, which so far has been the default with./configure; make; make install
.The
cockpit-ws
system user is not created statically at all, but created transiently and on demand via systemd'sDynamicUser
feature. If you want to, you can safely remove the static system user with e.g.userdel -r cockpit-ws
after the upgrade to this version and aftersystemctl stop cockpit
.The
cockpit-wsinstance
system user is now declared through systemd-sysusers.