[Bug 280099] adduser not respecting home directory mode

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 03 Jul 2024 05:17:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280099

--- Comment #5 from Daniel Li <dan@danielyli.com> ---
After reading over 215c0a5, it doesn't appear to be anything wrong with the
commit itself.

The issue seems to be upstream in `pw` and unrelated to zfs; specifically, `pw`
doesn't seem to change the directory permissions if the home directory is a
mounted file system.

To reproduce via, say, nullfs:

      mkdir /any/arbitrary/new/dir
      mount -t nullfs /any/arbitrary/new/dir /home/newuser
      pw useradd newuser -m -M 700

The /home/newuser directory will be unchanged, as if 700 were not specified.

-- 
You are receiving this mail because:
You are the assignee for the bug.