fix user and permissions