bugfindutils - Bugs: bug #44078, Find fails if executed from a...


bug #44078: Find fails if executed from a directory on which the user has no list permissions and exec is an option used

Submitter:  None
Submitted:  Sat 24 Jan 2015 06:47:26 PM UTC
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Robbie Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.4.2
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Jump to the original submission

Mon 06 Apr 2015 07:41:37 AM UTC, comment #6: 

With latest stable release 4.4.2 I still get:

$ pwd
$ ls -dl
d-wx--x--x 2 paul users 40 Apr  6 09:30 .
$ find /tmp -exec echo '{}' ';'
find: pred.c:1932: launch: Assertion `starting_desc >= 0' failed.
Aborted (core dumped)

As you stated, seems to be fixed in the development branch 4.5.x.


Paul <archuser>
Sat 04 Apr 2015 01:56:37 AM UTC, comment #5: 

If I follow this formula, I get the expected results in both instances.  This is with version 4.5.11 on Fedora 19.

$ mkdir /tmp/bug
$ chmod a-r /tmp/bug
$ cd /tmp/bug
$ find /tmp
$ find /tmp -exec echo '{}' ';'

Can you try this method, so as to avoid having to arrange for "sudo" to work, and also to check if there is some peculiar side-effect of using sudo?

Dale Worley <worley>
Fri 03 Apr 2015 02:10:06 PM UTC, comment #4: 

Sorry forget used environments on which reproduced:
- Up to date Arch Linux: find 4.4.2, sudo 1.8.13
- Up to date Ubuntu 14.04: find 4.4.2, sudo 1.8.9p5

Paul <archuser>
Fri 03 Apr 2015 02:00:38 PM UTC, comment #3: 

To reproduce this:
- Change to a directory where ${USER} in the following commands has no rights to read.
- sudo -u "${USER}" find /tmp # Works as expected.
- sudo -u "${USER}" find /tmp -exec echo '{}' ';' # Does not.

Same with -execdir (tested) and maybe other actions (not tested).

Makes no sense for me, but I am presumbly mistaken...

Paul <archuser>
Fri 13 Feb 2015 12:34:05 AM UTC, comment #2: 

My version is from last January: 4.4.2-7 in Ubuntu 14.04 which is still the latest for the distro. I've had this issue for over a year, but now cannot replicate it either. I didn't update findutils, but something had to have changed. I checked that soo many times before submitting this bug.

Thanks for checking it out. If the original reporter can't replicate, then I don't think there is anything else to do but to close this bug.

Sat 24 Jan 2015 08:31:22 PM UTC, comment #1: 

The version of findutils you are using is about 6 years old,
and I can't reproduce this issue with newer find (or oldfind).

It seems this bug has already been fixed 4-5 years ago:


I recommend to upgrade.

Bernhard Voelker <berny>
Group administrator
Sat 24 Jan 2015 06:47:26 PM UTC, original submission:  

from my home directoy this works:
sudo -u www-data find /var/www/ -type d ! -perm -070
this does not:
sudo -u www-data find /var/www/ -type d ! -perm -070 -exec chmod 770 {} \;
failure message: find: pred.c:1932: launch: Assertion `starting_desc >= 0' failed.

That same command works fine if I cd to / or /var/www.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by worley (Posted a comment)
  • -email is unavailable- added by archuser (Posted a comment)
  • -email is unavailable- added by berny (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code