chmod workaround