From nobody Tue Dec 10 23:38:58 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y7FYb3z3rz5g2xy for ; Tue, 10 Dec 2024 23:38:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7FYb01NGz4nnD for ; Tue, 10 Dec 2024 23:38:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733873939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ncBZCXBNCRMB6uLGeMJamJRk5v8xge7ZQdAP2f5Wnew=; b=is3ttGfixKrl7JIFowAXoKg/jDv6d6XJNsNqYv/b0NcVK3ze1jqHPP/1tZ65s4ibdhSAgY rNXpfoNCttDe2iZjoG86M8PpIg05ReAyN4H4b7tR65Cdehhz9FC9bLVmihwVaJNU3L+kSZ kNhs7I6riYqvbUCey1n2w5g1GuW1gFFxIlq6bPnlNsreFmev6/iYTHaJ+oloW9jV3N1gD5 VPrVYJG0VUivpTOGddmdrgxe43Ml5GuEhoEP9MSaXCdCTaP3lxeMgPPAO9i7B5wG4+ngap NiNbLG4SjVnrGPqNfF1BQhzGd1trM/A6sk4Qem8ye6tj2/qjh1C8yvRtMrAx5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733873939; a=rsa-sha256; cv=none; b=lmL8AJCcYAP4DHXOkSx3KI0LIC2V83TDe7iHA2S23IthcAsfI6wkvL8rJ/xrf8ZBKj4IqE UPayuLrWwGRfm9jZwW/gSQmtGalkGAtf5gpdO2K91X67BBMqLiLtwRI08g1Psayxq1Bx0n qKpvf6e7NmIb1eBacRXdKdGOIQn5edXOcvtQNoY/rH3ZBNQtwpY6b9gYUgx/eapeREXDWR oP64YsAqSsFSH86q3t0RaXaf1VjAckhKDoPCBsSXPlfBkLGDj0N2QWbM9CPUzZccYDSs48 QoQrsO70nU2h63hGnkrS3YCqA1nRVJEyWndyHkAeKfW3VFpsP5L/wQZiwL5J9w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y7FYZ6fL8zkkK for ; Tue, 10 Dec 2024 23:38:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BANcwls002478 for ; Tue, 10 Dec 2024 23:38:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BANcwYX002477 for bugs@FreeBSD.org; Tue, 10 Dec 2024 23:38:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280099] adduser not respecting home directory mode Date: Tue, 10 Dec 2024 23:38:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable14? mfc-stable13? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280099 --- Comment #15 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1eaaa55f2ba9b45dfd955743a9bc5cbe7= a6437f3 commit 1eaaa55f2ba9b45dfd955743a9bc5cbe7a6437f3 Author: Kyle Evans AuthorDate: 2024-12-01 19:05:57 +0000 Commit: Kyle Evans CommitDate: 2024-12-10 23:06:15 +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) (cherry picked from commit 6a7238fd7c60f35191eadaa026d3d395c6140c47) 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 on the CC list for the bug.=