find does not find camera files for normal user

Bug #1462504 reported by Ingvar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
findutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

I made a script to find an process files in a USB connected camera. A key part of it is "find -name *.JPG", where $me contains the numeric user id. My user is created as an admin user by the user created during OS install.
But when this script is run by a normal user, find doesn't, i.e. no data returned. Nautilus pops up as usual when the camera is connected and switched on, "ls /run/user/$me/gvfs/......" with an explicit path also works. So my workaround is an ugly three layer for loop that uses ls instead.

Have not found any information on this problem on the 'net.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: findutils 4.4.2-9build1
ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
Uname: Linux 3.19.0-18-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Jun 5 21:37:39 2015
Dependencies:
 gcc-5-base 5.1~rc1-0ubuntu1
 libc6 2.21-0ubuntu4
 libgcc1 1:5.1~rc1-0ubuntu1
 multiarch-support 2.21-0ubuntu4
InstallationDate: Installed on 2015-06-02 (3 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: findutils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ingvar (ingvar-ingpia) wrote :
Revision history for this message
Ingvar (ingvar-ingpia) wrote :

A typo in the bug description :-( :
"A key part of it is "find -name *.JPG", where $me contains the numeric user id" should be
"A key part of it is "find /run/user/$me/gvfs/ -name *.JPG", where $me contains the numeric user id"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.