Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 296631

Summary: find fails with "Permission denied" if parent directory lacks 'r' permission
Product: Red Hat Enterprise Linux 5 Reporter: Jordan Russell <jr-redhatbugs2>
Component: findutilsAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 5.0CC: psplicha
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0589 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-23 13:02:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
backported patch none

Description Jordan Russell 2007-09-19 17:28:45 UTC
Description of problem:
If the directory one level up from the specified path does not have 'x'
permission, find fails with a "Permission denied" error.

This issue is new to RHEL5; it does NOT happen on RHEL4.5.
(Bug also appears to exist in Fedora 7.)

Version-Release number of selected component (if applicable):
findutils-4.2.27-4.1

How reproducible:
Always

Steps to Reproduce:
# mkdir /test
# chmod 711 /test
# mkdir /test/subdir
# touch /test/subdir/file
# su - otheruser
$ find /test/subdir -name file
  
Actual results:
find: /test: Permission denied

Expected results:
/test/subdir/file

Comment 1 Jordan Russell 2007-09-20 04:16:46 UTC
Typo: 'x' permission -> 'r' permission

Comment 2 Vitezslav Crhonek 2008-02-14 12:55:31 UTC
Hi,

Thanks for your report.

This issue is fixed in Fedora Rawhide (findutils-4.2.32-1).

Please contact official Red Hat Support at https://www.redhat.com/apps/support/
to allow correct prioritization of this issue in Red Hat Enterprise Linux 5.

Comment 3 Vitezslav Crhonek 2008-04-15 12:36:02 UTC
Created attachment 302443 [details]
backported patch

Comment 4 RHEL Program Management 2008-06-04 22:48:46 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 11 errata-xmlrpc 2008-07-23 13:02:11 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0589.html