update right for file