Auto refresh to Core20 #1856, $passwd not works properly

Bug #2012886 reported by Soar Huang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snap-core20
New
Undecided
Unassigned

Bug Description

After auto refreshing core20 from #1832 to #1856,
observe the new core20 #1856 cannot run `$passwd` properly anymore.

Reported on Core20 GitHub as well
https://github.com/snapcore/core20/issues/143

-----------------------------------------------------
iotuc@ubuntu:~$ passwd iotuc
Changing password for iotuc.
(current) UNIX password:
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
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
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

passwd: Have exhausted maximum number of retries for service
passwd: password unchanged

iotuc@ubuntu:~$
iotuc@ubuntu:~$ snap changes
ID Status Spawn Ready Summary
4 Done 4 days ago, at 04:42 UTC 4 days ago, at 04:44 UTC Auto-refresh snap "core20"

iotuc@ubuntu:~$
iotuc@ubuntu:~$ snap list
Name Version Rev Tracking Publisher Notes
core20 20230308 1856 latest/stable canonical✓ base
kernel 5.4.0-1034.45.1 126 latest/edge canonical✓ kernel
network-manager 1.22.10-14 743 20/stable canonical✓ -
snapd 2.58.3 18600 latest/stable canonical✓ snapd
gadget 20-3 71 latest/edge/… OEM/ODM gadget
iotuc@ubuntu:~$

Tags: oem-priority
Soar Huang (soarhuang)
summary: - Auto refresh to Core20 #1856, run $passwd will show up
- /var/cache/cracklib/cracklib_dict.pwd.gz: No such file or directory
+ Auto refresh to Core20 #1856, $passwd not works properly
description: updated
Revision history for this message
Soar Huang (soarhuang) wrote (last edit ):

If run with `$sudo`, it could change successfully, but it will show up 'error loading dictionary'

-----------------------------------------------------
iotuc@ubuntu:~$ sudo passwd iotuc
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
Retype new password:
passwd: password updated successfully

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
-----------------------------------------------------

Soar Huang (soarhuang)
description: updated
Soar Huang (soarhuang)
description: updated
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.