HomeFreeBSD

pw: set the user's home directory mode if it existed

Description

pw: set the user's home directory mode if it existed

The adduser(8) prompt allows one to set the mode of a new home
directory, but pw(8) doesn't honor the -M mode if the home directory
already exists at creation time. It doesn't seem to make sense to
ignore the mode (which may lead to a security issue on the system being
configured) when we'll happily chown an existing directory, so fix the
inconsistency.

PR: 280099
Reviewed by: des, jlduran (previous version)

(cherry picked from commit 6a7238fd7c60f35191eadaa026d3d395c6140c47)

Details

Provenance
kevansAuthored on Sun, Dec 1, 7:05 PM
Parents
rG7ea2874eadf9: daemon: stop rebuilding the kqueue every restart of the child
Branches
Unknown
Tags
Unknown