fixing the metastore permissions