4 ms·
The only thing I can say against Debian is that it tends to start new server software immediately after install, before I have a chance to configure it properly
by rbanffy 1y ago
The only thing I can say against Debian is that it tends to start new server software immediately after install, before I have a chance to configure it properly. Defaults are sane for most packages, but, still, it scares me a little. In that I like the Red Hat approach of installing and leaving it off until I decide to turn it on.
- JackeJR 1y agoJust have sane firewall rules and you are good. E.g. if I install openssh-server and it auto starts, it doesn't make it out of my machine because my nftables does not allow inbound on port 22. It's just knowing the default behaviour and adjusting your practices for it.
- teo_zero 1y agoAren't firewall rules part of the "configuration" the OP talked about?
- mjochim 1y agoNo, because you can install and configure the firewall before you install package X. (without knowing anything about X, your firewall defaults can just prevent X from doing anything) But you can't (easily) configure package X itself before you install it; and after you install it, it runs immediately so you only get to configure it after the first run.
- johnisgood 1y agoThat is a workaround for a ridiculous issue.
- rbanffy 1y agoA sane firewall won't protect you from privilege escalation from a local attacker. While unlikely, this is one more breach that could be exploited.
- bayindirh 1y agoDebian bundles AppArmor profiles for most services. This will prevent an attacker from accessing outside the perimeter drawn by the AppArmor profile.
- account42 1y agoThis is the "you're holding it wrong" response to a clear design issue.
- Linux-Fan 1y agoIt is a well-known issue with probably less well-known solutions, cf. <https://unix.stackexchange.com/questions/723675/debian-ubuntu-prevent-services-from-being-started-and-enabled-upon-install https://unix.stackexchange.com/questions/723675/debian-ubunt...> echo exit 101 > /usr/sbin/policy-rc.d chmod +x /usr/sbin/policy-rc.d I think this is the recommended way to avoid autostarting services on Debian.
- rbanffy 1y agoGood pointer. I remember learning it, and then forgetting it. Probably more than once. Still should be the default behavior.