Click here for the code.

Provisioning and configuration files on the PPT server within the various CTID home folders need to be owned by their respective users and have universal read/write/execute permissions. Files automatically generated meet neither of these criteria and manually changing permissions and ownership is tedious and time consuming , especially if there are large numbers of files.

The script rf-ppt-repair was written to streamline the process of adjusting permissions and ownership in this particular use case. The script is run with a CTID passed as an argument:

rf-ppt-repair 1900027

It then applies the requisite ownership and permissions to everything within that CTID home folder.