Comment 2 for bug 2012886

Revision history for this message
Soar Huang (soarhuang) wrote :

Update

If we add system-user via cloud-init (cloud.conf) in gadget snap,
we cannot login the UC20 system if setting 'expire: True',
-----------------------------------------------------
#cloud-config
  ssh_pwauth: True
  users:
   - name: iotuc
     sudo: ALL=(ALL) NOPASSWD:ALL
     shell: /bin/bash
  chpasswd:
   list: |
    iotuc:iotuc
   expire: True
-----------------------------------------------------

It will show below error message as well

-----------------------------------------------------
New password:
/var/cache/cracklib/cracklib_dict.pwd.gz: No such file or directory
BAD PASSWORD: The password fails the dictionary check - error loading dictionary
-----------------------------------------------------