From nobody Mon Jul 1 06:51:57 2024 X-Original-To: freebsd-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 4WCGtf3tTbz5PgyS for ; Mon, 01 Jul 2024 06:52:10 +0000 (UTC) (envelope-from dan@danielyli.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCGtd6DFkz4qNv for ; Mon, 1 Jul 2024 06:52:09 +0000 (UTC) (envelope-from dan@danielyli.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=danielyli-com.20230601.gappssmtp.com header.s=20230601 header.b=TdAE9eYn; dmarc=none; spf=pass (mx1.freebsd.org: domain of dan@danielyli.com designates 2a00:1450:4864:20::229 as permitted sender) smtp.mailfrom=dan@danielyli.com Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2e72224c395so29098961fa.3 for ; Sun, 30 Jun 2024 23:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danielyli-com.20230601.gappssmtp.com; s=20230601; t=1719816728; x=1720421528; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KTtypf6Da7vwdpfK71aMgfZ16mjjsM0I8OwM+5MXQt8=; b=TdAE9eYnsUUMuAvadUVTCDjZ7+FrABOVX0cpIoaAmwL2R5zuCvFgDqBQDV3kAxmVjP xafNBbYfeVcwtVwxnEplfHx5Jxh0zFDwxLUvcgAFz6FPVXajHRshuxoo8uXGfz+4wN2d Q9MyWNTHQojNXPnmbcr1kFFFbMzHbw0CuHVcNhF8eTNfkwJM5KUoou8iHDKjB77B8Ozr cZN/wNEGBqJCUXw+iOfffqBttDgUjwS6AKjr/yG9b1QnjleJTLVpX295cGM+k6mkcTlN qH2QHF795SO0naw12f0NxF/Co62tTDWc52s3AMFZsU1SVPTfI4M0nHL9OpIndgHanWvR 9TNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719816728; x=1720421528; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KTtypf6Da7vwdpfK71aMgfZ16mjjsM0I8OwM+5MXQt8=; b=m8qTPJG6CcyvcZvwaEmakgzQ7DXe25eDoMxiI5GlcfqMSdLNGFTPy6TO8QcprytSJG MFcRoOlghZNEPYcMOmpMVMpocCUQjSU7oOuWlyt+4gbpRhgetqQlRrL2z+9yOEr39KRY 8WMlKUStZB0p2x+4VJ4NHeJfg8RgoSgkosWBracJodODwpG/rjvG3pHAh9FJevuY6yeo D3z+ZeSzovJ2kNKynEDvQ+d64X3yfpkRX9Ow+fysBdU2FblYL4oCibmd5C38HwpAgFUE dtIhatqEZwa4Tl4QVbOp9MygjReO0Mf4+xNP4G76orL2BBYSuNAY39MNJZnM6cBugTa3 JXbg== X-Gm-Message-State: AOJu0Ywy/dyWgPi5FtK6UOlHOjAwjfTA3q1U7p7sILEQ9ondCIZd4eGZ dxBoVVDbtPLwkXDK+rae3mFcBW1AM8kN6OSYSLxgd6B0Cv84c9qUxs+n+KI/n+/Eh8YIYAG6g85 IENCC0oVadEZzajo8pS1yeEbvIexc1f6Z2dQVM+qGVnVoG/5Ut5A= X-Google-Smtp-Source: AGHT+IH17vdUSS7beVrqCxOFmUGVMseCFmRfBD2xD/UqpTyby+1pfCeZWRRnwWMptX6XmfwHXHCJiJOO/owZ36nu6Dk= X-Received: by 2002:a2e:6d12:0:b0:2ec:95:d6fe with SMTP id 38308e7fff4ca-2ee5e36eecfmr26941571fa.24.1719816727903; Sun, 30 Jun 2024 23:52:07 -0700 (PDT) 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 From: Daniel Li Date: Sun, 30 Jun 2024 23:51:57 -0700 Message-ID: Subject: Possible bug: `adduser` not respecting home directory mode To: freebsd-bugs@freebsd.org Content-Type: multipart/alternative; boundary="000000000000255dd9061c2a0912" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[danielyli-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEFALL_USER(0.00)[dan]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::229:from]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-bugs@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[danielyli.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-bugs@freebsd.org]; DKIM_TRACE(0.00)[danielyli-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4WCGtd6DFkz4qNv --000000000000255dd9061c2a0912 Content-Type: text/plain; charset="UTF-8" Hi there, I noticed today that the home directory for a new user created via any of these methods will always have permissions `rwxr-xr-x`: 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? freebsd-version -kru gives: 14.1-RELEASE 14.1-RELEASE 14.1-RELEASE-p1 Best, Daniel Li --000000000000255dd9061c2a0912 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=
Hi there,

<= div>I noticed today that the home directory for a new user created via any = of these methods will always have permissions `rwxr-xr-x`:

1. `adduser -M 700`
2. `adduser`, and then manually spec= ify `700` in interactive mode
3. Configure default mode via `addu= ser -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?

freebsd-version -kru gives:
14.1-= RELEASE
14.1-RELEASE
14.1-RELEASE-p1
<= div>
Best,
Daniel Li
<= /div>
--000000000000255dd9061c2a0912--