[olug] Redhat: /dev/ttyS0 is not serial port 1?

Jon H. Larsen relayer at levania.org
Tue Sep 30 18:40:45 UTC 2003


On Tue, 30 Sep 2003, neal rauhauser wrote:

> Date: Tue, 30 Sep 2003 10:19:30 -0500
> From: neal rauhauser <neal at lists.rauhauser.net>
> Reply-To: Omaha Linux User Group <olug at olug.org>
> To: Omaha Linux User Group <olug at olug.org>
> Subject: [olug] Redhat: /dev/ttyS0 is not serial port 1?
> 
> 
> 
>    I've tried /dev/ttyS0 and /dev/ttyS1 with minicom 2.0.0 under RH9.0 
> and I am getting nowhere fast - can't see the device on the other side 
> of the link. I rebooted, got into BIOS and adjust parameters on the 
> serial port - still no go - anyone got any ideas?
> 
> 
> 

Neal,

Check out my previous message about serial port permissions, which I have 
included below.

Jon L.

----- cut here -----

>From relayer at levania.org Tue Sep 30 13:38:44 2003
Date: Mon, 22 Sep 2003 10:44:52 -0500 (CDT)
From: Jon H. Larsen <relayer at levania.org>
Reply-To: Omaha Linux User Group <olug at olug.org>
To: Omaha Linux User Group <olug at olug.org>
Subject: Re: [olug] What am I forgetting 

On Sun, 21 Sep 2003, Tom wrote:

> Date: Sun, 21 Sep 2003 18:20:49 -0500
> From: Tom <huber28 at cox.net>
> Reply-To: Omaha Linux User Group <olug at olug.org>
> To: Omaha Linux User Group <olug at olug.org>
> Subject: [olug] What am I forgetting 
> 
> What am I forgetting to change?
> I have a program that keys my radio through comm. 1 ttyS0.
> It works fine if I am logged on as root or switched to su but otherwise it
> won't key xmitter.
> I have changed ownership and group and set all the rights.  What am I
> missing?
> Thanks

Tom,

Try running 'setserial /dev/ttyS0' as the non-root user you want to run 
your application with and see what you get.

Default:

crw-------    1 root     uucp       4,  64 Sep 19 08:05 /dev/ttyS0

result:
>$ setserial /dev/ttyS0
/dev/ttyS0: Permission denied


Here is what mine looks like after I changed it 
(command: chown jlarsen /dev/ttyS0):

crw-------    1 jlarsen  uucp       4,  64 Sep 19 08:05 /dev/ttyS0

>$ setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4


This should allow the given username to access the serial port.


Jon L.

----- cut here -----



-- 
Jon H. Larsen  - email: relayer at levania dot org
Omaha Linux Users Group - http://www.olug.org
ICQ#: 10412618 - http://www.levania.org/~relayer/
PGP Pubkey - http://www.levania.org/~relayer/relayerpubkey.txt



More information about the OLUG mailing list