auto set port with rw rights