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
F157331405: D45229.diff
Wed, May 20, 9:44 AM
F157322508: D45229.diff
Wed, May 20, 8:08 AM
Unknown Object (File)
Sun, May 17, 1:15 PM
Unknown Object (File)
Fri, May 15, 10:28 AM
Unknown Object (File)
Wed, May 13, 10:22 AM
Unknown Object (File)
Tue, May 12, 12:23 AM
Unknown Object (File)
Tue, May 12, 12:23 AM
Unknown Object (File)
Tue, May 12, 12:22 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