[etherlab-users] user-space application needs elevated privileges for /dev/EtherCAT0?
Dusty Clark
dclark at mmto.org
Thu Jan 2 03:58:09 CET 2014
Pardon for the noob question, but I have Etherlab 1.5.2 set up on a Fedora
19 system, and have a strange issue with reserving a master instance.
To start with, I *should* have read/write permission on the
device:[dclark at bukhansan Debug_ecat]$ ls -l /dev/EtherCAT0
crw-rw-r--. 1 root users 249, 0 Jan 1 13:33 /dev/EtherCAT0
But when I wrote the simplest possible application to just request and then
release the master to check I had all the build and link options set
correctly, I got the following error:
[dclark at bukhansan Debug_ecat]$ ./TestServo
Failed to open /dev/EtherCAT0: Permission denied
FATAL: couldn't request a master instance.
Running it as root:
[root at bukhansan Debug_ecat]# ./TestServo
Master instance created ok
Releasing master...done!
Any ideas why this would be? Thanks in advance!
Dusty Clark
MMT Observatory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140101/1834f60c/attachment-0002.htm>
More information about the Etherlab-users
mailing list