xs@kittenz.org xs@kittenz.org wrote:
You don't need to be root. Check the permissions for /dev/ttySx. The UID that you want to access the port needs read and write permissions.
I think the normal way of doing this is for there to be a "serial" group or similar, the devices belong to this group and are group-read-writeable and all users who are permitted to use the serial devices are listed in /etc/group
You can check a particular user's groups quickly with: id username or, for the current user: id will should the current groups. Note that changes to /etc/group may require you to log out and back in before taking effect, or at least to start a new shell.
Hope that helps, MJR