Ask Your Question

Revision history [back]

Can I do a simple chmod? Or is there a way to run ROS as root? When I run it with sudo it get 'command not found':

No, you don't need to and you should never (well, never ..) do that. See Rosrun as super user.

Can I do a simple chmod? Or is there a way to run ROS as root? When I run it with sudo it get 'command not found':

No, you don't need to and you should never (well, never ..) do that. See Rosrun as super user.


Edit:

[..] I believe the problem is that the USB to UART driver is installed with root permissions [..]

Under Linux, drivers are always installed as root (directly or via sudo), as that is the only user allowed to do that. The permissions of the device file (in your case /dev/ttyUSB0) can be configured separately.

Can I do a simple chmod? Or is there a way to run ROS as root? When I run it with sudo it get 'command not found':

No, you don't need to and you should never (well, never ..) do that. See Rosrun as super user.


Edit:

[..] I believe the problem is that the USB to UART driver is installed with root permissions [..]

Under Linux, drivers are always installed asas root root (directly or via sudo), as that is the only user allowed to do that. The permissions of the device file (in your case /dev/ttyUSB0) can be configured separately.

Can I do a simple chmod? Or is there a way to run ROS as root? When I run it with sudo it get 'command not found':

No, you don't need to and you should never (well, never ..) do that. See Rosrun as super user. (the accepted answer also explains how to solve your problem).


Edit:

[..] I believe the problem is that the USB to UART driver is installed with root permissions [..]

Under Linux, drivers are always installed as root (directly or via sudo), as that is the only user allowed to do that. The permissions of the device file (in your case /dev/ttyUSB0) can be configured separately.