host.adduser and contrib.unison fails to create valid user

Bug #1440053 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
In Progress
Undecided
Unassigned

Bug Description

contrib.unison calls host.adduser to create an account, without specifying a password. This would be fantastic, since we don't want a password since we are setting up ssh access, except it fails. host.adduser detects the lack of password, and calls useradd with the --system option. This option is explicitly documented as not creating the home directory, so subsequent attempts to setup ~/.ssh fail.

Fix is to generate a random password, or fix host.adduser to properly create passwordless accounts.

Related branches

Stuart Bishop (stub)
Changed in charm-helpers:
status: New → In Progress
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.