USB Modbus communication from control box

I’ve made a URCap that communicates with a USB RS485 converter, it works on URSim but not the robot. I believe this is because the command “sudo chmod 666 /dev/ttyUSB#” has to be run to access serial ports on the control box. Is there a way to communicate without executing this command, or is a different approach necessary? Also, is there a way to read console output from PolyScope on the pendant?