Click to See Complete Forum and Search --> : com1 port enabling?


nCider
12-18-2000, 09:42 AM
Scenario:

This software running needs to use the serial port to communicate with a external piece of the kit (a controller). So the software is pointed to use /dev/ttys0 to use com1 where the controller is set up. I chmod'd that to 777 (just to get it working). I can run the script as root but I get a "Input/Output Error". If I run the script as myself I get a permission denied error.

My questions:

How do I give everyone permission to use this port for this device?

Do I have to enable Com1 to get i/o? That might be the answer but how do I do that?

Thanks in advance....

Lorithar
12-18-2000, 10:57 AM
*blears at the screen*
(I'm NOT 100% awake right now)

In my slack kernel build I have the option to build in serial support or not ... I personally chose not to a) I have no serial devices, and b) I don't expect to add any.
Also .. you can use ttys0 to access the port and change the modes, but if you look at /dev/ttys0 it is actually under the control of a parent device ... I can't recall this second... check the permissions on it too ..
Note that the devices should be OWNED by root, but there are some peculiarities as to the group that owns them. On Slack the group that owns the ttyS devices is ...tty... weird since the group doesn't exist in /etc/groups... IF I were to run into this with this setup, I'd change the group ownership to either wheel or root.