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

Dusty Clark dclark at mmto.org
Thu Jan 2 07:39:53 CET 2014


Perfect fix! Thanks, Matthieu.

My bad for assuming that a user account in Linux belongs to the "users"
group. It's funny!



On Wed, Jan 1, 2014 at 11:08 PM, matthieu bec <mbec at gmto.org> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140101/15bfe37c/attachment-0004.htm>


More information about the Etherlab-users mailing list