[olug] What am I forgetting

Tom huber28 at cox.net
Tue Sep 23 00:33:30 UTC 2003


One of the guys at work brought in a book and I was going through the
commands and saw that.
But before I could try it I got your note below and it worked great, thanks.
I guess put that as another notch and note on my list.

Tom

-----Original Message-----
From: olug-bounces at olug.org [mailto:olug-bounces at olug.org]On Behalf Of
Jon H. Larsen
Sent: Monday, September 22, 2003 10:45 AM
To: Omaha Linux User Group
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.

--
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

_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list