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)
Thu, May 22, 11:57 AM
Unknown Object (File)
Fri, May 16, 7:25 AM
Unknown Object (File)
Thu, May 15, 7:38 PM
Unknown Object (File)
Tue, May 13, 8:33 AM
Unknown Object (File)
Fri, May 9, 11:15 AM
Unknown Object (File)
May 5 2025, 1:37 AM
Unknown Object (File)
May 3 2025, 10:48 AM
Unknown Object (File)
Apr 28 2025, 9:39 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