In my case, when I got this message
can't open device "/dev/ttyUSB0": Permission denied
the solution turned out to be to change the permissions on the port:
sudo chmod ugo+w /dev/ttyUSB0
I have not found a way to effect this permanently, and therefore have to do it every time the port is unplugged.