openssh-server install does not create privilege separation user sshd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When I installed the openssh-server package on 8.04, it did not create the sshd privilege separation user, which causes the /etc/init.d/ssh script to fail to start sshd at boot time.
The problem turns out to be in the openssh-
When I ran the adduser line in openssh-
I believe the correct fix is to grep for the sshd user in /etc/passwd in the postinst script, and run adduser to create a local user if it is not found, rather than using getent to detect the presence of sshd. (Apparently getent will find an NIS account, which you don't want.) It makes no sense for the sshd user to be on a remote NIS server; it should always be a local account.
Well, I agree on the general nature of the problem. However, the NIS server will presumably be up when the package is being configured, and won't adduser fail if the user already exists on a NIS server?