Page MenuHomeFreeBSD

adduser: create dataset only if home is directly within dataset
ClosedPublic

Authored by karels on May 17 2024, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 2, 12:28 PM
Unknown Object (File)
Fri, Nov 21, 3:11 AM
Unknown Object (File)
Nov 13 2025, 4:52 AM
Unknown Object (File)
Nov 9 2025, 2:20 PM
Unknown Object (File)
Oct 29 2025, 8:33 AM
Unknown Object (File)
Oct 29 2025, 8:29 AM
Unknown Object (File)
Oct 29 2025, 8:11 AM
Unknown Object (File)
Oct 25 2025, 11:15 PM
Subscribers
None

Details

Summary

Currently, if the prefix of the new home directory is a subdirectory
of a ZFS dataset, adduser will create a new dataset up one or more
levels from the intended destination. "pw useradd" will then create
a normal directory in the desired location, leaving an unused dataset.
Check for this situation when determining whether to create a dataset,
and let pw create the directory.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 57738
Build 54626: arc lint + arc unit