[Bug 280099] adduser not respecting home directory mode

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Jul 2024 20:36:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280099

            Bug ID: 280099
           Summary: adduser not respecting home directory mode
           Product: Base System
           Version: 14.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: dan@danielyli.com

I noticed today that the home directory for a new user created via any of these
methods will always have permissions `755`:

1. `adduser -M 700`
2. `adduser`, and then manually specify `700` in interactive mode
3. Configure default mode via `adduser -C`, then execute the above #1 or #2

`adduser` seems to always ignore the specified mode. Is this a bug, or is this
user error?

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