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, Apr 28, 8:34 PM
Unknown Object (File)
Tue, Apr 28, 8:28 PM
Unknown Object (File)
Sun, Apr 26, 9:19 PM
Unknown Object (File)
Sat, Apr 25, 4:42 AM
Unknown Object (File)
Thu, Apr 23, 6:51 PM
Unknown Object (File)
Tue, Apr 21, 12:52 AM
Unknown Object (File)
Sun, Apr 19, 2:53 AM
Unknown Object (File)
Sat, Apr 18, 6:39 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 Not Applicable
Unit
Tests Not Applicable