[olug] What am I forgetting 
    Jon H. Larsen 
    relayer at levania.org
       
    Mon Sep 22 15:44:52 UTC 2003
    
    
  
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
    
    
More information about the OLUG
mailing list