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, Jun 4, 8:43 AM
Unknown Object (File)
Mon, Jun 1, 5:45 AM
Unknown Object (File)
Fri, May 22, 1:25 PM
Unknown Object (File)
Fri, May 22, 12:13 AM
Unknown Object (File)
Thu, May 21, 10:45 PM
Unknown Object (File)
Thu, May 21, 6:19 PM
Unknown Object (File)
Thu, May 21, 10:35 AM
Unknown Object (File)
Wed, May 20, 8:01 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