bash: ./exiftool: Permission denied

Started by philld, May 04, 2018, 04:49:18 PM

Previous topic - Next topic

philld

I have downloaded the exiftool package and "un-arc'ed" it into its own directory on a secondary drive in the machine.  When I attempt to execute the example in the readme doc - I receive that subject error message.  I didn't locate the .jpg file in the "t" directory so tried using my own image file but it is the same error.  I tried the exiftool without providing a file name and also received the same error.  Below is several attempts to utilize the command.  I tried both ./exiftool and exiftool without the ./ just in case it might make a difference - in the later case the message command not found was returned.

[psd@localhost Image-ExifTool-10.95]$ exiftool /mnt/extradasd/20130106_140101.mp4
bash: exiftool: command not found
[psd@localhost Image-ExifTool-10.95]$ ls -l
total 740
drwxr-xr-x 2 psd psd   4096 May  4 08:30 arg_files/
-rw-r--r-- 1 psd psd 380404 May  4 08:30 Changes
drwxr-xr-x 2 psd psd   4096 May  4 08:30 config_files/
-rwxr-xr-x 1 psd psd 281372 Apr 19 11:26 exiftool*
drwxr-xr-x 2 psd psd   4096 May  4 08:30 fmt_files/
drwxr-xr-x 3 psd psd   4096 May  4 08:30 html/
drwxr-xr-x 4 psd psd   4096 May  4 08:30 lib/
-rw-r--r-- 1 psd psd   2016 Oct 21  2016 Makefile.PL
-rw-r--r-- 1 psd psd  20472 Apr 18 11:48 MANIFEST
-rw-r--r-- 1 psd psd   1222 May  4 08:30 META.json
-rw-r--r-- 1 psd psd    681 May  4 08:30 META.yml
-rw-r--r-- 1 psd psd   5460 May  4 08:30 perl-Image-ExifTool.spec
-rw-r--r-- 1 psd psd  11997 May  4 08:30 README
drwxr-xr-x 3 psd psd  20480 May  4 08:30 t/
[psd@localhost Image-ExifTool-10.95]$ exiftool
bash: exiftool: command not found
[psd@localhost Image-ExifTool-10.95]$ ./exiftool
bash: ./exiftool: Permission denied
[psd@localhost Image-ExifTool-10.95]$ ./exiftool t/DSC_0082.JPG
bash: ./exiftool: Permission denied


Re my system - the OS is PCLinuxos 64 bit, as mentioned above, the software was installed into a directory on a secondary drive in the machine.

Phil Harvey

Wow.  Odd.  "exiftool" is executable by anyone.  I don't understand the permission problem.

As a patch, try "perl exiftool" instead of "./exiftool".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

philld

Thanks for the suggestion - that worked!!

Alan Clifford

Maybe exiftool is on a different file system from Perl and has been mounted wirh "noexec"?