[etherlab-users] user-space application needs elevated privileges for /dev/EtherCAT0?

matthieu bec mbec at gmto.org
Thu Jan 2 07:08:59 CET 2014


Hi Dusty,

That should work as long as user dclark belongs to the group users.
Check with 'id'

Matthieu




On 01/01/14 18:58, Dusty Clark wrote:
> 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
>
>
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>


-- 
Matthieu Bec                GMTO Corp.
cell : +1 626 354 9367      P.O. Box 90933
phone: +1 626 204 0527      Pasadena, CA 91109-0933



More information about the Etherlab-users mailing list