Limiting the power of package installation in Debian
Limiting the power of package installation in Debian
Posted Nov 20, 2018 11:24 UTC (Tue) by laarmen (subscriber, #63948)In reply to: Limiting the power of package installation in Debian by berndp
Parent article: Limiting the power of package installation in Debian
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
Limiting the power of package installation in Debian