Comment 2 for bug 1814124

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: sshd does not start after update

Hi,
I took a fresh system and it had openssh-server installed right away (as it is part of all the base images).
/var/run/sshd was at 0755 root:root already

I was wondering if the package install would kill the permission/ownership, so I did
  $ apt install --reinstall openssh-server
But things stayed fine.

Ok, then I purged the package and removed the path to then install it from scratch.
  $ apt remove --purge openssh-server
  $ rmdir /var/run/sshd
# ensured that /var/run/sshd really doesn't exist anymore
  $ apt install openssh-server

The path is back and permissions are ok.

I can't find how you got into this situation :-/
I'm puzzled:
- from what to what do you upgrade trusty -> xenial or just a package version in xenial?
- do you have any idea where the bad permissions on /var/run/sshd might come in your case?
- if you follow my second example of purge, rmdir, install does the path get created correctly on your system?