EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: problems in running application(ASYN)
From: "J. Lewis Muir" <[email protected]>
To: tech-talk <[email protected]>
Date: Wed, 06 Jun 2007 10:06:21 -0400
zhangdemin99 wrote:
> Dear all,
>   I have built ASYN on my computer, but there are some problems when
> running application. It said: \dev/ttyS0 can't open Permission denied
>   Should I open the serial port in the Linux first or  is there  another
> problems? what should I do next?

Hi, Demin.

Do you have read and write permissions on the device file /dev/ttyS0?

Can you send the output of the following commands when run as the user
you are running your ASYN application as:

$ ls -alF /dev/ttyS0
$ groups

On some Linux systems, the /dev/ttyS* device files are readable and
writable by root and the uucp group. In order to be able to read and
write to these device files, you need to add your user to the uucp
group. This can be done with administrator privileges from an
administrative account management GUI likely provided with your Linux
distribution. It can also be done from the command line if you have the
usermod command.

A less secure approach is to make the /dev/ttyS0 device world readable
and writable (run as root or as root via sudo):

# chmod o+rw /dev/ttyS0

With this approach, however, if you install a kernel update or anything
that may rebuild the /dev tree, your permissions change on the
/dev/ttyS0 file may be lost so you'll have to go back and change it
again after such an update.

-lewis



References:
problems in running application(ASYN) zhangdemin99

Navigate by Date:
Prev: RE: problems in running application(ASYN) Denison, PN (Peter)
Next: Re: problems in running application(ASYN) Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: problems in running application(ASYN) Denison, PN (Peter)
Next: Re: problems in running application(ASYN) Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·