From unknown Thu Sep 11 06:07:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18937: chmod ???? bug? Resent-From: Plato Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 03 Nov 2014 18:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18937 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 18937@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141503954827144 (code B ref -1); Mon, 03 Nov 2014 18:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2014 18:32:28 +0000 Received: from localhost ([127.0.0.1]:47817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlMQW-00073i-2h for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:32:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49627) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlMLB-0006tu-C3 for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:26:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlML1-00027u-6e for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:26:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlML1-00027e-3t for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:26:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlMKs-0001bJ-RT for bug-coreutils@gnu.org; Mon, 03 Nov 2014 13:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlMKk-0001xX-JK for bug-coreutils@gnu.org; Mon, 03 Nov 2014 13:26:38 -0500 Received: from smtp106.mer-nm.internl.net ([217.149.192.119]:48597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlMKk-0001xG-Dv for bug-coreutils@gnu.org; Mon, 03 Nov 2014 13:26:30 -0500 Received: from amavisd-new (mailscanner01.wrt-nm.internl.net [217.149.192.110]) by smtp106.mer-nm.internl.net (Postfix) with ESMTP id 33ADB400FE for ; Mon, 3 Nov 2014 19:26:28 +0100 (CET) Received: from smtp106.mer-nm.internl.net ([217.149.192.119]) by amavisd-new (mailscanner01.wrt-nm.internl.net [217.149.192.159]) (amavisd-new, port 10024) with ESMTP for ; Mon, 3 Nov 2014 19:26:26 +0100 (CET) Received: from localhost (162-74.bbned.dsl.internl.net [92.254.74.162]) by smtp106.mer-nm.internl.net (Postfix) with SMTP for ; Mon, 3 Nov 2014 19:26:26 +0100 (CET) Date: Mon, 3 Nov 2014 19:26:25 +0100 From: Plato Message-Id: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> X-Mailer: Sylpheed 3.4.0beta6 (GTK+ 2.24.22; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Mon, 03 Nov 2014 13:32:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) Hello, After using chmod chmod -R 644 /media/plato/mountedpartition/ (I see I forgot the * at the end) my ls -l listing has all entry's like these: First a list like this of every file and folder ls: cannot access /media/plato/mountedpartition/justafiile.txt: Permission denied Then one time total 0 Folowed by -????????? ? ? ? ? ? justafile.txt d????????? ? ? ? ? ? Files One example of a file and one of a directory If I do ls Files I get ls: cannot access /media/plato/mountedpartition/Files: Permission denied When I do sudo ls Files I get a listing of the contents of files as expected. Is this a bug? It was not my intention to get this. I do not know how to get it back to what it was. I tried it on a single file with chmod 644 justafile.txt but that did not solve it. Any ideas? Thanks for maintaining chmod -- With kind regards, Plato From unknown Thu Sep 11 06:07:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Plato Subject: bug#18937: closed (Re: bug#18937: chmod ???? bug?) Message-ID: References: <5457FDF4.40607@cs.ucla.edu> <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> X-Gnu-PR-Message: they-closed 18937 X-Gnu-PR-Package: coreutils Reply-To: 18937@debbugs.gnu.org Date: Mon, 03 Nov 2014 22:14:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1415052842-17700-1" This is a multi-part message in MIME format... ------------=_1415052842-17700-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18937: chmod ???? bug? 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 18937@debbugs.gnu.org. --=20 18937: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18937 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1415052842-17700-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18937-done) by debbugs.gnu.org; 3 Nov 2014 22:13:21 +0000 Received: from localhost ([127.0.0.1]:47978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlPsH-0004aA-H5 for submit@debbugs.gnu.org; Mon, 03 Nov 2014 17:13:21 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:33124) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlPsE-0004Zl-37 for 18937-done@debbugs.gnu.org; Mon, 03 Nov 2014 17:13:19 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 2A7ACA60038; Mon, 3 Nov 2014 14:13:17 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i-JZBLQ2AiGk; Mon, 3 Nov 2014 14:13:08 -0800 (PST) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8523BA60037; Mon, 3 Nov 2014 14:13:08 -0800 (PST) Message-ID: <5457FDF4.40607@cs.ucla.edu> Date: Mon, 03 Nov 2014 14:13:08 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Plato , 18937-done@debbugs.gnu.org Subject: Re: bug#18937: chmod ???? bug? References: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> In-Reply-To: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 18937-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (--) On 11/03/2014 10:26 AM, Plato wrote: > chmod -R 644/media/plato/mountedpartition/ The behavior you observe is what I'd expect once the permissions on directories are messed up. To fix it, try "chmod -R +X/media/plato/mountedpartition/" as root. ------------=_1415052842-17700-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Nov 2014 18:32:28 +0000 Received: from localhost ([127.0.0.1]:47817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlMQW-00073i-2h for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:32:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49627) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlMLB-0006tu-C3 for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:26:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlML1-00027u-6e for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:26:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlML1-00027e-3t for submit@debbugs.gnu.org; Mon, 03 Nov 2014 13:26:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlMKs-0001bJ-RT for bug-coreutils@gnu.org; Mon, 03 Nov 2014 13:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlMKk-0001xX-JK for bug-coreutils@gnu.org; Mon, 03 Nov 2014 13:26:38 -0500 Received: from smtp106.mer-nm.internl.net ([217.149.192.119]:48597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlMKk-0001xG-Dv for bug-coreutils@gnu.org; Mon, 03 Nov 2014 13:26:30 -0500 Received: from amavisd-new (mailscanner01.wrt-nm.internl.net [217.149.192.110]) by smtp106.mer-nm.internl.net (Postfix) with ESMTP id 33ADB400FE for ; Mon, 3 Nov 2014 19:26:28 +0100 (CET) Received: from smtp106.mer-nm.internl.net ([217.149.192.119]) by amavisd-new (mailscanner01.wrt-nm.internl.net [217.149.192.159]) (amavisd-new, port 10024) with ESMTP for ; Mon, 3 Nov 2014 19:26:26 +0100 (CET) Received: from localhost (162-74.bbned.dsl.internl.net [92.254.74.162]) by smtp106.mer-nm.internl.net (Postfix) with SMTP for ; Mon, 3 Nov 2014 19:26:26 +0100 (CET) Date: Mon, 3 Nov 2014 19:26:25 +0100 From: Plato To: bug-coreutils@gnu.org Subject: chmod ???? bug? Message-Id: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> X-Mailer: Sylpheed 3.4.0beta6 (GTK+ 2.24.22; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 03 Nov 2014 13:32:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) Hello, After using chmod chmod -R 644 /media/plato/mountedpartition/ (I see I forgot the * at the end) my ls -l listing has all entry's like these: First a list like this of every file and folder ls: cannot access /media/plato/mountedpartition/justafiile.txt: Permission denied Then one time total 0 Folowed by -????????? ? ? ? ? ? justafile.txt d????????? ? ? ? ? ? Files One example of a file and one of a directory If I do ls Files I get ls: cannot access /media/plato/mountedpartition/Files: Permission denied When I do sudo ls Files I get a listing of the contents of files as expected. Is this a bug? It was not my intention to get this. I do not know how to get it back to what it was. I tried it on a single file with chmod 644 justafile.txt but that did not solve it. Any ideas? Thanks for maintaining chmod -- With kind regards, Plato ------------=_1415052842-17700-1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 04 12:44:55 2014 Received: (at control) by debbugs.gnu.org; 4 Nov 2014 17:44:55 +0000 Received: from localhost ([127.0.0.1]:49093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XliA3-0007At-8a for submit@debbugs.gnu.org; Tue, 04 Nov 2014 12:44:55 -0500 Received: from joseki.proulx.com ([216.17.153.58]:44519) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xli9z-0007Ah-Tr for control@debbugs.gnu.org; Tue, 04 Nov 2014 12:44:52 -0500 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 693F021229 for ; Tue, 4 Nov 2014 10:44:50 -0700 (MST) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 3E4C32DC35; Tue, 4 Nov 2014 10:44:50 -0700 (MST) Date: Tue, 4 Nov 2014 10:44:50 -0700 From: Bob Proulx To: control@debbugs.gnu.org Subject: close bug Message-ID: <20141104104136775952541@bob.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.6 (/) tag 18937 + notabug close 18937 thanks From unknown Thu Sep 11 06:07:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18937: chmod ???? bug? Resent-From: Bob Proulx Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 04 Nov 2014 17:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18937 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: Plato Cc: 18937@debbugs.gnu.org Reply-To: 18937@debbugs.gnu.org, Plato Received: via spool by 18937-submit@debbugs.gnu.org id=B18937.141512322927973 (code B ref 18937); Tue, 04 Nov 2014 17:48:01 +0000 Received: (at 18937) by debbugs.gnu.org; 4 Nov 2014 17:47:09 +0000 Received: from localhost ([127.0.0.1]:49098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XliCC-0007H6-T1 for submit@debbugs.gnu.org; Tue, 04 Nov 2014 12:47:09 -0500 Received: from joseki.proulx.com ([216.17.153.58]:44531) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XliCA-0007Gu-0S for 18937@debbugs.gnu.org; Tue, 04 Nov 2014 12:47:06 -0500 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 7829321229; Tue, 4 Nov 2014 10:47:05 -0700 (MST) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 482732DC35; Tue, 4 Nov 2014 10:47:05 -0700 (MST) Date: Tue, 4 Nov 2014 10:47:05 -0700 From: Bob Proulx Message-ID: <20141104102941612522935@bob.proulx.com> Mail-Followup-To: 18937@debbugs.gnu.org, Plato References: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.6 (/) Plato wrote: > After using chmod > chmod -R 644 /media/plato/mountedpartition/ (I see I forgot the * at the end) That is a problematic command regardless of the '*' at the end or not. If any of the arguments is a directory then it will set the directory permission to 644 as specified. But directories need the 'x' bit (execute permission) set as well. The above command will remove the execute bit from /media/plato/mountedpartition and then fail to search below it due to permission problems. It will then leave the directory in an unhappy state. > ls -l > listing has all entry's like these: > First a list like this of every file and folder > ls: cannot access /media/plato/mountedpartition/justafiile.txt: Permission denied That is correct when the execute permission is removed from a directory. > When I do > sudo ls Files > I get a listing of the contents of files as expected. This is because file mode bits only apply to non-root access. Root is the superuser and always has permission regardless of the file mode bits. Root always has access regardless of permissions. > Is this a bug? No. It is doing exactly what you told it to do. Try this: ls -ld /media/plato/mountedpartition The -d option will tell ls to show the argument itself instead of showing the contents of the directory. With that you will see something like this mode bits: drw-r--r-- but directories need to have the x bit there too like drwxrwxr-x typically. > It was not my intention to get this. I do not know how to get it back to what it was. > I tried it on a single file with > chmod 644 justafile.txt > but that did not solve it. Any ideas? After removing the execute bit from the directory you simply must add the execute bit back to the directory. It will probably be enough to do this using symbolic modes. chmod a+x /media/plato/mountedpartition In the old numeric form, combined with your previous 644, this would be similar to: chmod 755 /media/plato/mountedpartition Do not use the -R option with numeric arguments such as 644 because the numeric mode will be recursively applied across directories. That is almost never what you want. If using the -R option it is safer to use the symbolic modes such as go-w. Since this is all expected behavior I am going to go ahead and close this bug. However please continue the discussion here in the bug log. Any replies are still seen and discussed by the group. Bob From unknown Thu Sep 11 06:07:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18937: chmod ???? bug? Resent-From: f0rhum Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 06 Nov 2014 09:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18937 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: 18937@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14152670535115 (code B ref -1); Thu, 06 Nov 2014 09:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Nov 2014 09:44:13 +0000 Received: from localhost ([127.0.0.1]:51057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmJbw-0001KQ-EW for submit@debbugs.gnu.org; Thu, 06 Nov 2014 04:44:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45575) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmJbs-0001KD-RN for submit@debbugs.gnu.org; Thu, 06 Nov 2014 04:44:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmJbi-0006Nn-BQ for submit@debbugs.gnu.org; Thu, 06 Nov 2014 04:44:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmJbi-0006Nj-8o for submit@debbugs.gnu.org; Thu, 06 Nov 2014 04:43:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmJba-0001A5-Hk for bug-coreutils@gnu.org; Thu, 06 Nov 2014 04:43:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmJbS-0006M9-TT for bug-coreutils@gnu.org; Thu, 06 Nov 2014 04:43:50 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:32680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmJbS-0006Lz-NS for bug-coreutils@gnu.org; Thu, 06 Nov 2014 04:43:42 -0500 Received: from [192.168.22.9] (unknown [88.170.160.103]) (Authenticated sender: f0rhum) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 6D271822BF for ; Thu, 6 Nov 2014 10:41:48 +0100 (CET) Message-ID: <545B42CE.8090904@free.fr> Date: Thu, 06 Nov 2014 10:43:42 +0100 From: f0rhum User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 References: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> <20141104102941612522935@bob.proulx.com> In-Reply-To: <20141104102941612522935@bob.proulx.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) Le 04/11/2014 18:47, Bob Proulx a =E9crit : > Plato wrote: >> After using chmod >> chmod -R 644 /media/plato/mountedpartition/ (I see I forgot the * at = the end) > That is a problematic command regardless of the '*' at the end or > not. If any of the arguments is a directory then it will set the > directory permission to 644 as specified. But directories need the > 'x' bit (execute permission) set as well. > > The above command will remove the execute bit from > /media/plato/mountedpartition and then fail to search below it due to > permission problems. It will then leave the directory in an unhappy > state. > >> ls -l >> listing has all entry's like these: >> First a list like this of every file and folder >> ls: cannot access /media/plato/mountedpartition/justafiile.txt: Perm= ission denied > That is correct when the execute permission is removed from a directory= . > >> When I do >> sudo ls Files >> I get a listing of the contents of files as expected. > This is because file mode bits only apply to non-root access. Root is > the superuser and always has permission regardless of the file mode > bits. Root always has access regardless of permissions. > >> Is this a bug? > No. It is doing exactly what you told it to do. > > Try this: > > ls -ld /media/plato/mountedpartition > > The -d option will tell ls to show the argument itself instead of > showing the contents of the directory. With that you will see > something like this mode bits: drw-r--r-- but directories need to have > the x bit there too like drwxrwxr-x typically. > >> It was not my intention to get this. I do not know how to get it back = to what it was. >> I tried it on a single file with >> chmod 644 justafile.txt >> but that did not solve it. Any ideas? > After removing the execute bit from the directory you simply must add > the execute bit back to the directory. It will probably be enough to > do this using symbolic modes. > > chmod a+x /media/plato/mountedpartition > > In the old numeric form, combined with your previous 644, this would > be similar to: > > chmod 755 /media/plato/mountedpartition > > Do not use the -R option with numeric arguments such as 644 because > the numeric mode will be recursively applied across directories. That > is almost never what you want. If using the -R option it is safer to > use the symbolic modes such as go-w. > > Since this is all expected behavior I am going to go ahead and close > this bug. However please continue the discussion here in the bug > log. Any replies are still seen and discussed by the group. > > Bob > > > chmod -R u=3DrwX,g=3DrwX[s],o=3D[---|rX|rwX] /media/plato/mountedpartitio= n/ (no need the *, implied by -R) From unknown Thu Sep 11 06:07:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18937: chmod ???? bug? Resent-From: f0rhum Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 06 Nov 2014 09:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18937 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: 18937@debbugs.gnu.org Received: via spool by 18937-submit@debbugs.gnu.org id=B18937.14152678746381 (code B ref 18937); Thu, 06 Nov 2014 09:58:01 +0000 Received: (at 18937) by debbugs.gnu.org; 6 Nov 2014 09:57:54 +0000 Received: from localhost ([127.0.0.1]:51062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmJpC-0001er-9O for submit@debbugs.gnu.org; Thu, 06 Nov 2014 04:57:54 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:56830) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmJpA-0001ei-3U for 18937@debbugs.gnu.org; Thu, 06 Nov 2014 04:57:52 -0500 Received: from [192.168.22.9] (unknown [88.170.160.103]) (Authenticated sender: f0rhum) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 1C83D822EE for <18937@debbugs.gnu.org>; Thu, 6 Nov 2014 10:55:58 +0100 (CET) Message-ID: <545B4621.3000101@free.fr> Date: Thu, 06 Nov 2014 10:57:53 +0100 From: f0rhum User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 References: <20141103192625.5475ef99a69d40a4a4dfc84a@wishmail.net> <20141104102941612522935@bob.proulx.com> In-Reply-To: <20141104102941612522935@bob.proulx.com> Content-Type: multipart/alternative; boundary="------------030708060802080600030308" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) This is a multi-part message in MIME format. --------------030708060802080600030308 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit chmod -R u=rwX,g=rwX[s],o=[---|rX|rwX] /media/plato/mountedpartition/ (no need the *, implied by -R) --------------030708060802080600030308 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit
chmod -R u=rwX,g=rwX[s],o=[---|rX|rwX] /media/plato/mountedpartition/
(no need the *, implied by -R)
--------------030708060802080600030308--