OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: /etc/ttys fields for reading from tty00

From: Marc Balmer (mbalmeropenbsd.org)
Date: Sun Mar 02 2008 - 08:44:25 CST


AE sysadmin wrote:

> I am crafting C util to read data from tty00 (amd64, i386;
> connected to the data src device directly by serial cable).
>
> What should I put in /etc/ttys for the tty00 to make sure
> I am doing things correctly? The util is to be run as root.

you don't need to edit /etc/ttys, your C program has to open
/dev/cua00 (not /dev/tty00) and everything will just work.