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
F147753650: D45229.id138650.diff
Fri, Mar 13, 10:20 AM
F147752956: D45229.id138650.diff
Fri, Mar 13, 10:13 AM
Unknown Object (File)
Mon, Mar 9, 8:11 PM
Unknown Object (File)
Fri, Mar 6, 2:25 AM
Unknown Object (File)
Mon, Mar 2, 12:05 PM
Unknown Object (File)
Fri, Feb 20, 3:18 AM
Unknown Object (File)
Feb 8 2026, 4:00 PM
Unknown Object (File)
Jan 4 2026, 3:40 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 Not Applicable
Unit
Tests Not Applicable