[etherlab-users] Call control executable as user without admin rights

Martin Troxler martin.troxler at komaxgroup.com
Wed Apr 2 15:06:10 CEST 2014


On 02.04.2014 14:42, Matthias Liermann wrote:
>
> Hello,
>
> We use Etherlab 2.0 for the automation of a hydraulic test rig. We would like to give users without admin rights the 
> permission to execute control programs which have been built with the Simulink coder and the etherlab toolbox. We set 
> the udev rules from the etherlab documentation to allow user permission for the Ethercat device.
>
> KERNEL ==" EtherCAT [0 -9]*" , MODE ="0664" , GROUP =" users "
>
> When calling the executable we get the error message:
>
> mlockall() failed: Cannot allocate memory
>
> Setting SCHED_FIFO with priority 99 failed: Operation not permitted
>
> We can change the capability of the executable with setcap (sudo setcap cap_ipc_lock=ep  ./Test2ndOrderSystem). But 
> this doesn't help because we need administrator rights to change that too.
>
> Thank you, Matthias Liermann
>
Hi,

Add your user to a group 'realtime', then add a file 'realtime_limits.conf' to /etc/limits.d containing
@realtime - rtprio 99
@realtime - memlock unlimited

You can also specify a user in a limits.conf file by omitting the @ sign.

Regards
Martin


Note:             
   
This e-mail is for the named person's use only. It may contain confidential and/or privileged information. If you have received this e-mail in error, please notify the sender immediately and delete the material from any system. Any unauthorized copying, disclosure, distribution or other use of this information by persons or entities other than the intended recipient is prohibited.             
   
Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140402/2436dc98/attachment-0003.htm>


More information about the Etherlab-users mailing list