Generalized fix-permissions