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
run systemd-sysv-install on the server side #4957
Comments
Humm, I am not sure we should really add any new code for that. SysV is legacy, and I doubt we need to support the SysV init scripts any better than they were supported on SysV init. I mean, there you didn't have polkit, and unprivileged access or anything either. The only way to enable them there was chkconfig/update-rc.d, and that required root. We don't improve legacy/compat stuff beyond what the original version supported. If you want new stuff, just use native unit files, and your life will be better in a ton of other ways too. |
that said, we should probably log explicitly about this and skip the callout when invoked with UID != 0 |
Under sysv, we didn't use polkit, so this wasn't really an issue there. I don't think a UID != 0 check would be helpful, on the contrary. I still hope, we can move this to the server side to avoid this annoyance. |
I agree with the sentiment but I think this issue is of wider scope than this. Because enabling/disabling units via the bus has different results than via the cli, this makes bus users (like cockpit) less useful, as the world is still abundant in sysv-only services. So, rather than framing this as adding more functionality to the sysv compat, I'd frame this as systemd being consistent when run on the command line versus the bus. |
I think we can reasonably say that this is never going to happen. We will not add any new support for sysvinit. |
Submission type
systemd version the issue has been seen with
v232
Used distribution
Debian
In case of bug report: Expected behaviour you didn't see
Running
systemctl enable
as unprivileged user should show the polkit prompt, and after successful authentication, systemd-sysv-install should run with the necessary root privileges so it can change the configuration for a SysV/LSB serviceIn case of bug report: Unexpected behaviour you saw
In case of bug report: Steps to reproduce the problem
Run
systemctl enable
for a SysV service as unprivileged user.The text was updated successfully, but these errors were encountered: