[Bug 227592] Re: openssh-server install does not create privilege separation user sshd

Miguel Di Ciurcio Filho miguel.filho at gmail.com
Mon Oct 6 14:59:36 BST 2008


I have the same problem.

adduser will fail but it will not report it. Digging into the scripts
I've found this in /var/lib/dpkg/info/openssh-server.postinst:

setup_sshd_user() {
        if ! getent passwd sshd >/dev/null; then
                adduser --quiet --system --no-create-home --home /var/run/sshd --shell /usr/sbin/nologin sshd
        fi
}

When NIS is running, I manually ran the adduser command above and no
error is printed out nor an error status is returned, $? is zero.
Changing the command and removing the --quiet parameter:

friends:~# adduser  --system --no-create-home --home /var/run/sshd --shell /usr/sbin/nologin sshd
The system user `sshd' already exists. Exiting.
friends:~# echo $?
0

So I had to stop NIS and then run adduser again.
friends:~# adduser  --system --no-create-home --home /var/run/sshd --shell /usr/sbin/nologin sshd
Adding system user `sshd' (UID 111) ...
Adding new user `sshd' (UID 111) with group `nogroup' ...
Not creating home directory `/var/run/sshd'.

-- 
openssh-server install does not create privilege separation user sshd
https://bugs.launchpad.net/bugs/227592
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.



More information about the Ubuntu-server-bugs mailing list