SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

How do you fix permissions on MacOS when SongKong cannot modify a file

Sometimes SongKong cannot modify a music file because of the file permissions, it will then add an error to to the Errors and Warnings log

This shows us that for both files the owner is dad, then the permissions are rwxr-xrwx so what does this mean?

On MacOS and Unix a file can have r, w and x permissions, these mean the following:

  1. r, read permission, the file can be viewed
  2. w, write permission, the file can be modified
  3. x, execute permission, the file can be executed (i.e run)

and every file is owned by a user and the user is a member of a group. The rwx permissions are defined for the owner of the file, the users group and everyone else. So if we break down rwxr-xrwx we have:

  1. owner, rwx
  2. group, r-x,
  3. everyone else, rwx

So the users group does not have permission to modify the file (even though everyone else does). So assuming that SongKong is being run by a user of the same group as user dad but not dad himself that is why SongKong cannot modify the file.

A simple way to fix this is to:

  1. From Finder start the Utiltities:Terminal app
  2. cd *folder*
  3. chmod 777 *filename*

where folder is the folder containing the file, and filename is the file to give full permissions to the file for everyone. cd means change directory and chmod means change mode, each 7 represents rwx.

e.g for first file above you would do

  1. cd /users/dad/untitled folder
  2. chmod 777 38 Special - Caught Up in You.mp3

If you need to change many files you can use the recursive flag (-R) on the top level folder to change not just the top level folder but the permissions of all files and folders below it

e.g. chmod -R 777 *folderPath*