set rights and owner