host.adduser and contrib.unison fails to create valid user
Bug #1440053 reported by
Stuart Bishop
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
lp:~stub/charm-helpers/bug-1440073-unison
- charmers: Pending requested
-
Diff: 81 lines (+12/-9)2 files modifiedcharmhelpers/contrib/unison/__init__.py (+5/-4)
tests/contrib/unison/test_unison.py (+7/-5)
Changed in charm-helpers: | |
status: | New → In Progress |
To post a comment you must log in.