From debbugs-submit-bounces@debbugs.gnu.org Tue May 17 14:31:18 2022 Received: (at submit) by debbugs.gnu.org; 17 May 2022 18:31:18 +0000 Received: from localhost ([127.0.0.1]:57911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr1yY-0002zq-C5 for submit@debbugs.gnu.org; Tue, 17 May 2022 14:31:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:46636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr1Hc-0005J6-JO for submit@debbugs.gnu.org; Tue, 17 May 2022 13:46:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr1Hc-0006Mg-C1 for bug-coreutils@gnu.org; Tue, 17 May 2022 13:46:56 -0400 Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]:39517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nr1Ha-0007Aa-Rr for bug-coreutils@gnu.org; Tue, 17 May 2022 13:46:56 -0400 Received: by mail-yb1-xb32.google.com with SMTP id r11so33655381ybg.6 for ; Tue, 17 May 2022 10:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=Wq5SO8+N4eM9sGUqbumeY3tu5XvMlCZFHPTuDRsv0MU=; b=RfFy/yOAkxlIjToEpf/oMyzjkQIBovn9fMv2d8smCZC0w8SuyqwwrvanWXIUN0tzCG WrrYLqUavOw3r1KDzitT3Ysthmyq7ZPxMFPFtkzeB8GmSqPXG5x0luZyY3vCzEJ/wMay ez3cmwReSGrSVelBYzGTyZDOZ1E/9y2RblQ42oWdovM/Wdk10TdUeh/eyBRLfZK37xxq X+5/+2AMv+pE+y4lBzYODkKHvMBSFkWSoDsjzrO7S666BvfA7Vhp7H3hjWv8OdwVVwRd qNYRa4Yg9TWz2lAKcVlDXi7Xg6Iy2GGOq3/h/Jla9hl0uGzELdfjRjHANMlA/GcjVfvf hqXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Wq5SO8+N4eM9sGUqbumeY3tu5XvMlCZFHPTuDRsv0MU=; b=FMAaQUEto0JejUIJysuw705aFgYZrTRAUOyEz8UT1kUjV5JSvmvwSdJFUFCP9Pa1Mh A3JTjlp9d5v/hw01NNyJd6y8ZlTONn422w6k4R7ne2Uo5IOHV8errIpCIrn7E1suuDfa 3TdR4M0n8hbqvAiBtAJfIrYEhmI1cGDL+iG459kTGe2CU/B4HNNvK+rwSCLpBqUVl1kq /9/0UrFEjjDscYlPIh4to/S/pzIZakFjBkQEyRh0sMMrR44J8Kt2EsmT6esBJ7bv+hK1 rI5gCCmb67IgxeoJo1eFULjDiaKYbAB1hWjXxILCqyrMUrPv7JgwGl15Rlhd9IUhcyZl keww== X-Gm-Message-State: AOAM5304S/DsYRDWBJA0zST1nwJNI9LeTWR+wfwJrLfjz9AD3g/nish2 GzA9B39qEo7dS4NtQG2o7vNxtx4nn/8RZQZNPiAbFu/5m9A= X-Google-Smtp-Source: ABdhPJw473IGsUXtVBzvEsIJI/Zg8KV0Fyq0gEVlOksY8hyC4Wnvvr8MtO40nW2qyg/G6jMu4VdR0ZLmO1BshHBQfmE= X-Received: by 2002:a25:4bc6:0:b0:64d:efe1:a7d1 with SMTP id y189-20020a254bc6000000b0064defe1a7d1mr5576218yba.70.1652809611521; Tue, 17 May 2022 10:46:51 -0700 (PDT) MIME-Version: 1.0 From: Corey H Date: Tue, 17 May 2022 17:51:37 +0000 Message-ID: Subject: chmod to +w is not defaulting to ALL target in Debian 11.3 To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="000000000000c6b08e05df38b98e" Received-SPF: pass client-ip=2607:f8b0:4864:20::b32; envelope-from=user9de1d@gmail.com; helo=mail-yb1-xb32.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 17 May 2022 14:31:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000c6b08e05df38b98e Content-Type: text/plain; charset="UTF-8" in Debian 8.32-4+b1 (Debian 11.3) chmod +w isn't working right. sudo mkdir /etc/whatever sudo touch /etc/whatever/whatever.conf sudo chmod +w /etc/whatever/whatever.conf #doesn't work sudo chmod a+w /etc/whatever/whatever.conf #does work #in man chmod # it states "If none of these are given, the effect is as if (a) were given" # so in conclusion the `sudo chmod +w /etc/whatever/whatever.conf` should work --000000000000c6b08e05df38b98e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
in Debian 8.32-4+b1 (Debian 11.3) chmod +w isn't worki= ng right.

sudo mkdir /etc/whatever
sudo touch /etc/whatever/whate= ver.conf
sudo chmod +w /etc/whatever/whatever.conf #doesn't work
= sudo chmod a+w /etc/whatever/whatever.conf #does work
#in
man chmod# it states "If none of these are given, the effect is as if (a) wer= e given"
# so in conclusion the `sudo chmod +w /etc/whatever/whatev= er.conf` should work
--000000000000c6b08e05df38b98e-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 17 17:38:47 2022 Received: (at 55487-done) by debbugs.gnu.org; 17 May 2022 21:38:48 +0000 Received: from localhost ([127.0.0.1]:58192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr4tw-00020q-NR for submit@debbugs.gnu.org; Tue, 17 May 2022 17:38:47 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:47304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr4tt-00020a-0H for 55487-done@debbugs.gnu.org; Tue, 17 May 2022 17:38:42 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C3C351600C5; Tue, 17 May 2022 14:38:34 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XtSWCHzrhEOr; Tue, 17 May 2022 14:38:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 22C76160138; Tue, 17 May 2022 14:38:34 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qj3YE3vgh_7K; Tue, 17 May 2022 14:38:34 -0700 (PDT) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EB71E1600C5; Tue, 17 May 2022 14:38:33 -0700 (PDT) Message-ID: <8da7ffd9-64b1-e549-32f5-6ad1b7da84e8@cs.ucla.edu> Date: Tue, 17 May 2022 14:38:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: bug#55487: chmod to +w is not defaulting to ALL target in Debian 11.3 Content-Language: en-US To: Corey H References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55487-done Cc: 55487-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 5/17/22 10:51, Corey H wrote: > sudo chmod +w /etc/whatever/whatever.conf #doesn't work > sudo chmod a+w /etc/whatever/whatever.conf #does work It sounds like you're misunderstanding what "chmod +w" means. It doesn't mean "turn on all the w bits". It means "turn on the w bits enabled by the current umask". So, for example, this is expected behavior: $ umask 0022 $ touch foo $ ls -l foo -rw-r--r--. 1 eggert eggert 0 May 17 14:37 foo $ chmod +w foo $ ls -l foo -rw-r--r--. 1 eggert eggert 0 May 17 14:37 foo $ umask 0 $ chmod +w foo $ ls -l foo -rw-rw-rw-. 1 eggert eggert 0 May 17 14:37 foo From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 14:28:12 2022 Received: (at 55487-done) by debbugs.gnu.org; 18 May 2022 18:28:12 +0000 Received: from localhost ([127.0.0.1]:33653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrOP5-0000cD-G8 for submit@debbugs.gnu.org; Wed, 18 May 2022 14:28:12 -0400 Received: from mail-yb1-f178.google.com ([209.85.219.178]:44684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrNbt-0005NI-64 for 55487-done@debbugs.gnu.org; Wed, 18 May 2022 13:37:22 -0400 Received: by mail-yb1-f178.google.com with SMTP id p139so4876763ybc.11 for <55487-done@debbugs.gnu.org>; Wed, 18 May 2022 10:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rPICjoFIAoWKLfb1IrWyOKQuKdcjPuDD+1JPx4YjDjE=; b=GIpHO8H1u1Q29vhkjI6D93JsL/cKPA5WV3DOMYRZENzn0uHK7WQqXEJtX9hLKt3BP0 DGqKOroHfGphnpx+7kfmOpyh2hDLlVNOMPTzBig7PVni8Kjpw/4jkapwhDoM3ucYlMRJ cRDrwgqludiJk3MXauE9/c14sP4z+fT4lMsd+Ys5hjT8z8P4JHIlGrKQnTVyw7oOW/Qb RC2JeBt3eARX+5cWARli9h4WSHinkCWr9fwzHo7JqbKtFBvOcwvm0Epzg/Beda83lvY5 hhT7fqyBZAZPdcoTn4KRZdKmVPbLeU/wnynwGSZeHMj6ZObwFnBZLYNzPzak+uh2gQIu H3+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rPICjoFIAoWKLfb1IrWyOKQuKdcjPuDD+1JPx4YjDjE=; b=REBqnJSdgxBSxquEiV0w5ROEP03mfu0TDH3WnDtDn9OFxjZ9ZRGXNwmeN4xFJH3Ipn LnUiFCPJJUnpDNZ5R5nFkUUc6IYGSIhy0A3teTzGZ2WvBFLj5kv6VYqvydgfLsL7DUWs iDIawKau8mGPjTJoXj+wsBmf8RdNZ1X2L5rTSoFlKHm4Bb/dGrPLDk+MOizOzrZ58gkx mNSHKjYOBicJdhnQbQoqvL9hTtv6X5YcbZt1dy6X3ym9OBd5f2AZNLgzLgK4atRbCBw6 TIX81DB8UChmD8OJ7SkOMDd/AfTte6ACZXQlX5bZGPWTyqVgxImuT6jH+RU/eUT7qmKd 5xlQ== X-Gm-Message-State: AOAM530YaP7P3nty+zVA/5lLzVpGoueGKIjfJoLQS2jopl0tD6cCxWtH OzbXHCH6e/9d/SydRMZfrlZFWLa1dN23ca4N3nQ= X-Google-Smtp-Source: ABdhPJyBA0hatxMn5fpy3DmyBB1qfPi6/x4ECjVIUCWZhmPYJQRlVoKdFUHCFPKdiyOJeZQTkn9CZjUdjPQou+NlIOk= X-Received: by 2002:a25:4bc6:0:b0:64d:efe1:a7d1 with SMTP id y189-20020a254bc6000000b0064defe1a7d1mr773038yba.70.1652895435570; Wed, 18 May 2022 10:37:15 -0700 (PDT) MIME-Version: 1.0 References: <8da7ffd9-64b1-e549-32f5-6ad1b7da84e8@cs.ucla.edu> In-Reply-To: <8da7ffd9-64b1-e549-32f5-6ad1b7da84e8@cs.ucla.edu> From: Corey H Date: Wed, 18 May 2022 17:42:02 +0000 Message-ID: Subject: Re: bug#55487: chmod to +w is not defaulting to ALL target in Debian 11.3 To: Paul Eggert Content-Type: multipart/alternative; boundary="00000000000049c16a05df4cb576" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55487-done X-Mailman-Approved-At: Wed, 18 May 2022 14:28:09 -0400 Cc: 55487-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000049c16a05df4cb576 Content-Type: text/plain; charset="UTF-8" Interesting. On Tue, May 17, 2022 at 9:38 PM Paul Eggert wrote: > On 5/17/22 10:51, Corey H wrote: > > sudo chmod +w /etc/whatever/whatever.conf #doesn't work > > sudo chmod a+w /etc/whatever/whatever.conf #does work > > It sounds like you're misunderstanding what "chmod +w" means. It doesn't > mean "turn on all the w bits". It means "turn on the w bits enabled by > the current umask". So, for example, this is expected behavior: > > $ umask > 0022 > $ touch foo > $ ls -l foo > -rw-r--r--. 1 eggert eggert 0 May 17 14:37 foo > $ chmod +w foo > $ ls -l foo > -rw-r--r--. 1 eggert eggert 0 May 17 14:37 foo > $ umask 0 > $ chmod +w foo > $ ls -l foo > -rw-rw-rw-. 1 eggert eggert 0 May 17 14:37 foo > --00000000000049c16a05df4cb576 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Interesting.

On Tue, May 17, 2022 at 9:38 PM Paul Eggert &= lt;eggert@cs.ucla.edu> wrote:<= br>
On 5/17/22 10:51= , Corey H wrote:
> sudo chmod +w /etc/whatever/whatever.conf #doesn't work
> sudo chmod a+w /etc/whatever/whatever.conf #does work

It sounds like you're misunderstanding what "chmod +w" means.= It doesn't
mean "turn on all the w bits". It means "turn on the w bits = enabled by
the current umask". So, for example, this is expected behavior:

$ umask
0022
$ touch foo
$ ls -l foo
-rw-r--r--. 1 eggert eggert 0 May 17 14:37 foo
$ chmod +w foo
$ ls -l foo
-rw-r--r--. 1 eggert eggert 0 May 17 14:37 foo
$ umask 0
$ chmod +w foo
$ ls -l foo
-rw-rw-rw-. 1 eggert eggert 0 May 17 14:37 foo
--00000000000049c16a05df4cb576-- From unknown Mon Jun 23 13:12:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 16 Jun 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator