Change file permissions using exiftool

Started by jbarnes, August 07, 2018, 08:50:19 PM

Previous topic - Next topic

jbarnes

Hi all, I have come across an issue while tagging my photos using DigiKam that I'm hoping I can fix in exiftool. It seems that a number of my folders have their "File Permissions" set to "r" rather than "rw" and this seems to affect the ability of DigiKam to write tags to the metadata. Is there a way I can use exiftool to change these permissions to rw for all of these folders/files so that I can write tags to metadata?

Phil Harvey

Try this:

exiftool -filepermissions=rw-rw-rw- FILE

However, ExifTool should be able to write these files even without write permission (with some exceptions -- see the link).

- 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 ($).

jbarnes

Thanks Phil. I had a bit of a brain fart. It was just a matter of unchecking "Read Only" in my file properties. Easy fix.