Limiting the power of package installation in Debian
Limiting the power of package installation in Debian
Posted Nov 18, 2018 14:29 UTC (Sun) by jezuch (subscriber, #52988)In reply to: Limiting the power of package installation in Debian by berndp
Parent article: Limiting the power of package installation in Debian
Posted Nov 19, 2018 21:03 UTC (Mon)
by berndp (guest, #52035)
[Link] (3 responses)
In reality, that motto is good for the "don't care about security" faction as the stuff just runs (somehow ...).
Well, thank you for pointing out explicitly what folks can expect from Debian on a real server accessible to the real Internet ....
Posted Nov 20, 2018 11:24 UTC (Tue)
by laarmen (subscriber, #63948)
[Link] (2 responses)
Security is not a black-and-white issue. One might think that having a daemon automatically configured with sensible settings for basic, domestic use (such as, well, listening to localhost only), so that the user doesn't have to do anything, is better than having them copy-paste instructions from a random webpage on the Internet.
Posted Nov 20, 2018 11:58 UTC (Tue)
by karkhaz (subscriber, #99844)
[Link] (1 responses)
If all of that is true, then I'd be especially concerned because the openssh-server package is pulled in by the ssh metapackage. It wouldn't surprise me if a new user, being asked to install SSH, took that to mean running `apt-get install ssh` and therefore inadvertently ended up with sshd connected to the internet when all they wanted was the client (openssh-client).
Anyway, if daemons are started automatically but only listen to localhost, then that still contradicts the "just apt-install it" motto, since you'll need to edit sshd.conf to do anything useful. If you're going to make the user do work, it's surely better to have a sane default sshd.conf and ask them to run `systemctl start sshd`, than to ask them to edit a text file and run the same command, except for s/start/restart?
Posted Nov 20, 2018 14:22 UTC (Tue)
by laarmen (subscriber, #63948)
[Link]
I'm actually surprised, as Apache2 seems to listen to the outside by default (no fresh Debian at hand here though) even though there are relatively valid reasons to have a local-only web server. But in any cases, these are only examples, and I still think the policy of starting the services automatically with a sane default config is helpful for non-expert users, at the cost of a mild annoyance for the expert users.
Limiting the power of package installation in Debian
It may also sound/be installation person friendly which may make it easier to sell Debian as such.
But for the "I want to know what I do" faction, one has to stop the daemon immediately (or add some iptables rules beforehand) so that one can read and think about the configuration - let alone testing it.
Limiting the power of package installation in Debian
Limiting the power of package installation in Debian
Limiting the power of package installation in Debian