Date: Tue, 09 Sep 2025 04:00:05 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289398] adduser(8) fails to handle short passwords for ZFS native-encryption home directories Message-ID: <bug-289398-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289398-227>
