Skip to content
Micael Oliveira edited this page Nov 23, 2022 · 3 revisions

Finding and fixing files and directories with incorrect permissions or belonging to the wrong group

For the indexing to work properly (and for users to be able to access the data from the cookbook), the files and directories being indexed need to have appropriate permissions and belong to the correct group (usually ik11, hh5, cj50, or jk72). All files need to be readable by the group while directories need also to be executable.

To make the task of finding and fixing incorrect permissions and group ownership, two scripts are provided in this git repository:

To run these scripts, first clone this repository to some appropriate place on gadi:

 $ git clone https://github.com/COSIMA/master_index.git

You can then call the scripts as:

 $ ./master_index/check_permissions

and

 $ ./master_index/fix_permissions

Note that check_permissions will check all files and directories, while fix_permissions will only fix files and directories that are owned by the user invoking the script.