Masking scripts are failing in Linux server