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
F163244073: D45229.id138650.diff
Tue, Jul 21, 9:02 AM
Unknown Object (File)
Mon, Jul 20, 5:37 AM
Unknown Object (File)
Fri, Jul 3, 9:26 AM
Unknown Object (File)
Jun 14 2026, 11:31 PM
Unknown Object (File)
Jun 4 2026, 8:43 AM
Unknown Object (File)
Jun 1 2026, 5:45 AM
Unknown Object (File)
May 22 2026, 1:25 PM
Unknown Object (File)
May 22 2026, 12:13 AM
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