adjust permission of torch device