useradd fails to create the user sshd. Package installation fails.

Bug #41912 reported by Mike Luca
10
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Latest Ubuntu Dapper Beta, updated this morning. Ran Synaptic to install openssh-server, 1:4.2p1-7ubuntu1. In the terminal after the keys are generated, the following appears.

useradd: name sshd is not unique
adduser: `/usr/sbin/useradd -d /var/run/sshd -g nogroup -s /bin/false -u 107 sshd' returned error code 9. Aborting.
dpkg: error processing openssh-server (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 openssh-server

I have tried to add the user sshd to the system manually, but get the same result. The user sshd does not show up in my passwd file or in /etc/shadow. I tried disabling user seperation in /etc/ssh/sshd_config and in /etc/init.d/ssh but to no avail.

Revision history for this message
Mike Luca (mike-luca) wrote :

For now, to get this to start, I commented out the lines that check for privledge seperation users in /etc/init.d/ssh and changed /etc/ssh/sshd_config to read UsePrivlidgeSeperation no. This starts the daemon.

Revision history for this message
Marco Rodrigues (gothicx) wrote :

You've the same problem on Dapper or Feisty ?

Changed in openssh:
status: Unconfirmed → Needs Info
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Fixed on Feisty...

Changed in openssh:
status: Needs Info → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

No report back from the user (Marco didn't wait for one, either), and there's every possibility that this is specific to certain setups. Reopening pending further information.

Mike, is there anything at all unusual about your setup, such as LDAP authentication? Can you confirm whether this still happens with current releases of Ubuntu?

Changed in openssh:
assignee: nobody → kamion
status: Fix Released → Incomplete
Revision history for this message
pedro (menofgod) wrote : can't find useradd ubuntu

I do not obtain to add to 1 user I do not find useradd I appear me an error
help me please
estagio@pc-estagio:~$ to /usr/bin/adduser nagios
bash: to /usr/bin/adduser: Filing-cabinet or in existent directory

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

[LaFume:~] nxvl$ whereis adduser
adduser: /usr/sbin/adduser /etc/adduser.conf /usr/share/adduser /usr/share/man/man8/adduser.8.gz

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

estagio@pc-estagio:~$ to /usr/bin/adduser nagios
bash: to /usr/bin/adduser: Filing-cabinet or in existent directory

You're running the program "to", which is part of the casu package, intended to send a short message to another user on the system. This is probably a minor typographical error.

Secondly, adduser is located at /usr/sbin/adduser rather than /usr/bin/adduser. Note the additional "s" in sbin. This another typographical error.

Thirdly, I don't think this has anything to do with the original bug.

Colin Watson (cjwatson)
Changed in openssh:
assignee: kamion → nobody
Revision history for this message
Ralph Janke (txwikinger) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Chuck Short (zulcss) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in openssh (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.