'ROS - Buffer Overflow Error - How is chmod 666 command solving it?

I am working on a project based on the Lidar usage on ROS. I was getting Buffer Overflow Detected error and I saw that it is a common problem that can be solved easily with

sudo chmod 666 /dev/ttyUSB0

command.

But I could not understand how and why this permission solves this problem. Can you explain it in detail?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source