From unknown Mon Aug 18 11:11:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28914 <28914@debbugs.gnu.org> To: bug#28914 <28914@debbugs.gnu.org> Subject: Status: chmod (2) =?UTF-8?Q?=E2=80=93?= Issues report Reply-To: bug#28914 <28914@debbugs.gnu.org> Date: Mon, 18 Aug 2025 18:11:17 +0000 retitle 28914 chmod (2) =E2=80=93 Issues report reassign 28914 coreutils submitter 28914 Ricky Tigg severity 28914 normal tag 28914 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 11:12:21 2017 Received: (at submit) by debbugs.gnu.org; 20 Oct 2017 15:12:21 +0000 Received: from localhost ([127.0.0.1]:52523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5YyD-0006mA-IR for submit@debbugs.gnu.org; Fri, 20 Oct 2017 11:12:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5UIG-0005LL-Uh for submit@debbugs.gnu.org; Fri, 20 Oct 2017 06:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5UIA-0007eV-Rp for submit@debbugs.gnu.org; Fri, 20 Oct 2017 06:12:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,HTML_OBFUSCATE_10_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34234) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5UIA-0007eQ-O8 for submit@debbugs.gnu.org; Fri, 20 Oct 2017 06:12:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5UI9-0000su-MK for bug-coreutils@gnu.org; Fri, 20 Oct 2017 06:12:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5UI8-0007dS-Rh for bug-coreutils@gnu.org; Fri, 20 Oct 2017 06:12:37 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:47513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5UI8-0007dF-Kd for bug-coreutils@gnu.org; Fri, 20 Oct 2017 06:12:36 -0400 Received: by mail-wm0-x22a.google.com with SMTP id t69so20921180wmt.2 for ; Fri, 20 Oct 2017 03:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wuPJtFeyN3DBCg4sgyJ4tGJukY6mGUKIFXbLddTWcHE=; b=btrELa/eHsf60K1fpaSpfb3PwsJIeCDvtyd3xcBrkxQcu414+/3+ffnNHqZ7K6/h42 qskZRNyHk9eYl0MZgKBkJLvBFxtjhW6MUzkfQthHLenofxgbwyAr0RclazYWHhvjTF6x LDxJZ3SBET3uPYC5bbpST/hN+JGTD1IhJgG2nV3R56wSWfS38bu37Lu8Vsy0SUdG1inp n6U04HKMw1qpnS+k6+wW9thny8F6Ucahl/aomE5UUBitIDD7q55X0WzwabPM2PtJOxEd 1vTXMVxaE/RiqL34h5Jwq3F6NO5SpXy4ivq/z4J88wEYjZXa7rMqwFuB9NfUlwiCNWhb Id/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wuPJtFeyN3DBCg4sgyJ4tGJukY6mGUKIFXbLddTWcHE=; b=rVLV0BAByyWkcSEKvSvApEtOKYbhJ45Ynqe+K8U2U7AZjUo1iQcoU/giysUDbR54NL 41/yZaQToqsbIUkpcxbqnh5FwYcHKZgcKQABhJj+evGbX3OosYlf0dau4+8iW+c37q3G L/FEy4OQKteCETvSS0NtVhIHZuYBpudhkMa/8x83n8gRsraq8E/xVddHID260funjfsJ yI+EDtUXZ4p5uYmYvhKK5f/HbCt17ExwrdJMiYTmC6N9i755uzJBlujI5OQKLAhDLhyo Dr+SHB8/UR290A8Eg57clZ4mRUI1wDywG4mYkSSpaDMDEIAqHGX+voVJTLToUKpzv+5L O73A== X-Gm-Message-State: AMCzsaX1r34nPOC8dmjXC0mN3pggiNxZPysovH8SDwNWBoI98x1i/7pK pAL4UswwHHP+fQMvI5sslDb6FQmsYoscqUZGm64JqQ== X-Google-Smtp-Source: ABhQp+TMwUTjEQ+mj2LTR9I3FveMGnEayxpINdh+RK3DmszKyhvbaoylKa931NznAzuYPiWNAx1AfBY4K0Ffz9mAXEQ= X-Received: by 10.80.168.2 with SMTP id j2mr1326812edc.287.1508494355583; Fri, 20 Oct 2017 03:12:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.162.167 with HTTP; Fri, 20 Oct 2017 03:12:35 -0700 (PDT) From: Ricky Tigg Date: Fri, 20 Oct 2017 12:12:35 +0200 Message-ID: Subject: =?UTF-8?B?Y2htb2QgKDIpIOKAkyBJc3N1ZXMgcmVwb3J0?= To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="f403045c2b8c35d622055bf7b6f0" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 20 Oct 2017 11:12:20 -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.9 (--) --f403045c2b8c35d622055bf7b6f0 Content-Type: text/plain; charset="UTF-8" Current issue was also reported as Bug 1504053 and closed by someone not at the right place as notabug. --f403045c2b8c35d622055bf7b6f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Current issue was also reported as=C2=A0Bug=C2=A01504053=C2=A0and closed by som= eone not at the right place as notabug.
--f403045c2b8c35d622055bf7b6f0-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 14:07:51 2017 Received: (at control) by debbugs.gnu.org; 20 Oct 2017 18:07:51 +0000 Received: from localhost ([127.0.0.1]:52711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5bi3-0006jA-Bh for submit@debbugs.gnu.org; Fri, 20 Oct 2017 14:07:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5bhz-0006ik-Kd; Fri, 20 Oct 2017 14:07:48 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 847303F731; Fri, 20 Oct 2017 18:07:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 847303F731 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=eblake@redhat.com Received: from [10.10.121.90] (ovpn-121-90.rdu2.redhat.com [10.10.121.90]) by smtp.corp.redhat.com (Postfix) with ESMTP id A5D4E5D761; Fri, 20 Oct 2017 18:07:40 +0000 (UTC) Subject: =?UTF-8?Q?Re:_bug#28912:_chmod_=282=29_=e2=80=93_Issues_report?= To: Ricky Tigg , 28912-done@debbugs.gnu.org References: From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: <04a00c4b-7ec8-3120-04e8-aabb68648a82@redhat.com> Date: Fri, 20 Oct 2017 13:07:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MC9bT3KoHgklwQ8o1ORowXEgv23uK5k2j" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 20 Oct 2017 18:07:41 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control 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: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MC9bT3KoHgklwQ8o1ORowXEgv23uK5k2j Content-Type: multipart/mixed; boundary="CnAm3kSIlutl1L8Gqp9S4XUHAS1NNejol"; protected-headers="v1" From: Eric Blake To: Ricky Tigg , 28912-done@debbugs.gnu.org Message-ID: <04a00c4b-7ec8-3120-04e8-aabb68648a82@redhat.com> Subject: =?UTF-8?Q?Re:_bug#28912:_chmod_=282=29_=e2=80=93_Issues_report?= References: In-Reply-To: --CnAm3kSIlutl1L8Gqp9S4XUHAS1NNejol Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable merge 28912 28914 tag 28912 notabug thanks On 10/20/2017 04:35 AM, Ricky Tigg wrote: >>>From the followings inputs it should be expected to produce regarding t= he > input format either error or a warning messages. As empty sets all the > input tests have been conducted. Thanks for the report. However, I think you misunderstand the documentation; all of the examples posted in your email are valid parses (even if they do nothing), and intentionally do not trigger an error or a warning message, nor should they. It would probably do you a service to re-read the manual on how coreutils parses symbolic mode strings: https://www.gnu.org/software/coreutils/manual/coreutils.html#Setting-Perm= issions Every chmod mode string is divided into three parts: USERS (the leading [ugoa]...), OPERATIONS (the [-+=3D]), and the PERMISSIONS (either zero or= more from [rwxXst] or a single letter from [ugo]), and it is permissible to have more than one OPERATION in a single string (the manual gives og+rX-w as an example with two operations both performed on the USERS of og). The manual also states that omitting PERMISSIONS makes little sense for the - or + OPERATION, but is not forbidden (it makes more sense for the =3D OPERATION). >=20 > Examples of such validated combinations of format: >=20 > # chmod o- This is a valid command line. It says to subtract permissions from the 'other' bits, but then because it omits what permissions to subtract, nothing is subtracted, so it is a successful no-op. >=20 > # chmod + This is a valid command line. Because the USERS part is empty, it says to use umask for determining which set of mode bits to operate on (the manual says that is typically not useful except with the + OPERATION); the + then says to add permissions, and then the empty set of permissions to add mean it is a successful no-op. >=20 > # chmod agogagagouugogogaauagooaguaguououau=3D=3D=3D=3D=3D=3D=3D=3D=3D+= ++----=3D=3D--++++--- > This is a valid command line. You've done a very round-about way of spelling 'a' (repeating letters in USERS is permitted); then you are specifying multiple operations on that set of users (performing an '=3D' change with no permissions, performing another '=3D' change with no permissions, etc., and finally performing a '-' change with no permissions'). About the only thing that is not parseable is the completely empty string= : $ chmod '' foo chmod: invalid mode: =E2=80=98=E2=80=99 Try 'chmod --help' for more information. as the parser requires an OPERATION. In fact, in new enough versions, the 'chmod --help' output uses a regex: "Each MODE is of the form '[ugoa]*([-+=3D]([rwxXst]*|[ugo]))+|[-+=3D][0-7= ]+'." which is a rather accurate representation that matches all of the examples you gave. As such, I'm closing this as not a bug. However, feel free to add further comments to this thread if you have further evidence for coreutils not doing something required/permitted by POSIX, or not doing something that matches what is already documented behavior. >=20 > On Linux in terminal, by invoking "man chmod 2" it is noticeable from t= he > output that links related to internet sites are mentioned without HTTPS= > format while they are currently available: >=20 > =E2=80=9CGNU coreutils online help: 'man chmod 2' is not a typical command line; did you mean 'man 2 chmod' (to pull up the page for the syscall) vs. 'man 1 chmod' (to pull up the utility)? But yes, although this is an unrelated bug report, I can agree that we are slowly making the move to make more and more GNU software documentation refer to https rather than http. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --CnAm3kSIlutl1L8Gqp9S4XUHAS1NNejol-- --MC9bT3KoHgklwQ8o1ORowXEgv23uK5k2j Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlnqO2oACgkQp6FrSiUn Q2pTjQf/Sn5elqEOtaph/0WAOagaOn+ZgWesU3iNsMEzoIMJbElhu047NlLdGF+D 0+W86RF8T3wm3Ze/oAI6CgTF7ldhd+iVnU7roFMYbVKhAMBBzd9URRSctUi5dKNu nUikjKWV5igKp+qgiA70pUwMrrY1FLO261Sk41H5m7NtZp8jnxolcmkLEILek+qc Zacs4ehyoH8TQiZwx+2jh4AHg4lchGf05vJQxyjL7gz57tmurkM7e3gO1rHqVjdT oBIwKHRlLap58v8C4bsYqMH0teSho1If7Z4CK8HO6dIVm84wUUaFgTDBkjPHnr1j uujhl1jcuyZuIUZmqcMAvobe1lElPg== =eRfj -----END PGP SIGNATURE----- --MC9bT3KoHgklwQ8o1ORowXEgv23uK5k2j-- From unknown Mon Aug 18 11:11:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 18 Nov 2017 12:24:04 +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