System Port Permissions

Before using moserial with a serial port, you need to make sure that you actually have permission to read and/or write to the port.

There are a number of ways this is done on a Linux system. On Fedora 10, you may need to use the PolicyKit tool, invoked using System ▸ Preferences ▸ System ▸ Authorizations. Then, navigate to the org ▸ freedesktop ▸ device-access ▸ Directly access serial modem devices, and click edit. Set Anyone: to "Yes".

Figura 1Serial Port Authorizations on Fedora 10

On some systems, you may need to do something like "sudo chmod o+rw /dev/ttyS*" and "sudo chmod o+rw /dev/ttyUSB*" to obtain read/write permissions (for all users) on the serial ports.

Alternatively, you can see what group the devices belong to, and make your account a member of that group.