Experimental Physics and Industrial Control System
On 12/21/07 2:15 PM, Mark Rivers wrote:
> That is the good news. The bad news is that setting the permissions
> on that device, /dev/bus/usb/005/018 does not allow a non-privileged
> user to access the device. In order for a non-privileged use to
> access the device, I find that I need to set the permissions to 666
> on /proc/bus/usb/005/018 i.e. the /proc filesystem, not the /dev
> filesystem. If I change the permissions on the /proc filesystem
> manually then I can run the IOC in a non-privileged account.
>
> I am not a Linux expert by any means. What is the difference between
> the /dev and /proc filesystems? Peter also mentioned the /sys file
> system. How is that related?
>
> I am using the libusb library to access the device. With that API one
> simply calls usb_find_busses and usb_find_devices to locate the device
> you are interested in. You don't specify the file system anywhere.
>
> Any ideas how to get the permissions I need set on the device?
>
> Thanks, Mark
Hi, Mark.
Maybe the libusb library is using /proc/bus/usb as the virtual file
system instead of /dev/bus/usb. What happens if you set the
USB_DEVFS_PATH environment variable to "/dev/bus/usb" in the process
environment of your IOC?
-lewis
- Replies:
- Re: Help with udev Emmanuel Mayssat
- RE: Help with udev Mark Rivers
- Navigate by Date:
- Prev:
Re: problem running application in asyn4-6 Eric Norum
- Next:
RE: Ca error Jeff Hill
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: problem running application in asyn4-6 Eric Norum
- Next:
Re: Help with udev Emmanuel Mayssat
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024