saleyn / erlexec

Execute and control OS processes from Erlang/OTP
https://hexdocs.pm/erlexec/readme.html
Other
527 stars 139 forks source link

Can't run command under root on Linux. #126

Closed mkrentovskiy closed 5 years ago

mkrentovskiy commented 5 years ago

I use erlexec for starting commands on small device (OpenWrt). Its must be started as root and there no other valid user which can be started it. But I have no luck to do it simple way, just switching off cap_mode in build command line.

Is this something method to do this without remove checks from Erlang and port code?

saleyn commented 5 years ago

Have you tried a test similar to "Allowing exec-port to run commands as other effective users" in examples?

mkrentovskiy commented 5 years ago

Yes, I try.

If I add fake user like root - filters break on. With other users I can't start because its hasn't valid access rights.

Look like better use ports instead in this case. Thanks.