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, Feb 25, 6:48 PM
Unknown Object (File)
Sat, Feb 22, 2:22 PM
Unknown Object (File)
Sat, Feb 22, 2:02 PM
Unknown Object (File)
Sat, Feb 22, 2:01 PM
Unknown Object (File)
Feb 1 2025, 8:49 AM
Unknown Object (File)
Feb 1 2025, 5:54 AM
Unknown Object (File)
Jan 25 2025, 5:05 PM
Unknown Object (File)
Dec 30 2024, 5:37 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