From unknown Mon Jun 23 13:13:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55487: chmod to +w is not defaulting to ALL target in Debian 11.3 Resent-From: Corey H Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 17 May 2022 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55487 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 55487@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165281227811526 (code B ref -1); Tue, 17 May 2022 18:32:01 +0000 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: 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-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 unknown Mon Jun 23 13:13:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Corey H Subject: bug#55487: closed (Re: bug#55487: chmod to +w is not defaulting to ALL target in Debian 11.3) Message-ID: References: <8da7ffd9-64b1-e549-32f5-6ad1b7da84e8@cs.ucla.edu> X-Gnu-PR-Message: they-closed 55487 X-Gnu-PR-Package: coreutils Reply-To: 55487@debbugs.gnu.org Date: Tue, 17 May 2022 21:39:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1652823542-7774-1" This is a multi-part message in MIME format... ------------=_1652823542-7774-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #55487: chmod to +w is not defaulting to ALL target in Debian 11.3 which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 55487@debbugs.gnu.org. --=20 55487: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D55487 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1652823542-7774-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1652823542-7774-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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-- ------------=_1652823542-7774-1-- From unknown Mon Jun 23 13:13:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55487: chmod to +w is not defaulting to ALL target in Debian 11.3 Resent-From: Corey H Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 18 May 2022 18:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55487 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: 55487-done@debbugs.gnu.org Received: via spool by 55487-done@debbugs.gnu.org id=D55487.16528984922380 (code D ref 55487); Wed, 18 May 2022 18:29:01 +0000 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: Content-Type: multipart/alternative; boundary="00000000000049c16a05df4cb576" X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Wed, 18 May 2022 14:28:09 -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: -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--