[Bug 289398] adduser(8) fails to handle short passwords for ZFS native-encryption home directories
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289398] adduser(8) fails to handle short passwords for ZFS native-encryption home directories"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289398] adduser(8) fails to handle short passwords for ZFS native-encryption home directories"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289398] adduser(8) fails to handle short passwords for ZFS native-encryption home directories"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289398] adduser(8) fails to retry passwords for ZFS native-encryption home directories if failing the 8 character minimum requirement"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289398] adduser(8) fails to retry passwords for ZFS native-encryption home directories if failing the 8 character minimum requirement"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Sep 2025 04:00:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289398
Bug ID: 289398
Summary: adduser(8) fails to handle short passwords for ZFS
native-encryption home directories
Product: Base System
Version: 15.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: editor@callfortesting.org
ZFS native-encryption has an eight character minimum keyphrase length
requirement and adduser(8) does not validate this requirement before it is too
late, nor does it give a second chance, as zfs(8) does:
...
Enter encryption keyphrase for ZFS dataset (zroot/home/testuser):
Enter new passphrase:
<User enters 'test'>
cannot create 'zroot/home/testuser': Passphrase too short (min 8).
<zfs(8) retries here, adduser(8) does not, nor does it validate>
adduser: ERROR: There was an error creating ZFS dataset (zroot/home/testuser).
adduser: INFO: Successfully added (testuser) to the user database.
Failed to open dataset: zroot/home/testuser
adduser: ERROR: There was an error setting permissions on ZFS dataset
(zroot/home/testuser).
umount: /home/testuser: not a file system root directory
cannot open 'zroot/home/testuser': dataset does not exist
Tested on 15.0-ALPHA1
--
You are receiving this mail because:
You are the assignee for the bug.