Date: Sun, 01 Dec 2024 19:11:55 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280099] adduser not respecting home directory mode Message-ID: <bug-280099-227-QB754jzRTg@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-280099-227@https.bugs.freebsd.org/bugzilla/> References: <bug-280099-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280099 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6a7238fd7c60f35191eadaa026d3d395c= 6140c47 commit 6a7238fd7c60f35191eadaa026d3d395c6140c47 Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2024-12-01 19:05:57 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2024-12-01 19:08:31 +0000 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) Differential Revision: https://reviews.freebsd.org/D46443 usr.sbin/adduser/adduser.8 | 6 ++++-- usr.sbin/pw/cpdir.c | 27 +++++++++++++++++++++------ 2 files changed, 25 insertions(+), 8 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280099-227-QB754jzRTg>