I'd probably consider using groups. Like I briefly discuss here: https://github.com/wphermans/Bonejs/blob/master/documentation/permissions.md
However. sudo can be very specific with commands. So for instance if you wanted a regular user to be able to use apt-get update, and no other apt commands. You can lock that down very specifically in the sudoers file. On Mon, Aug 22, 2016 at 6:15 AM, mickeyf <[email protected]> wrote: > As a probably better alternative to sudo, you may want to look at > 'capabilities', which will allow your code permission for specific actions > and against specific object, rather than being root. > > http://www.linux-tutorial.info/modules.php?name=ManPage& > sec=7&manpage=capabilities > > http://man7.org/linux/man-pages/man7/capabilities.7.html > > http://man7.org/linux/man-pages/man8/setcap.8.html > > > On Sunday, August 21, 2016 at 1:46:30 AM UTC-7, Dror Lugasi wrote: >> >> Hey! >> >> I am using monodevelop with the BBB and i have managed to write terminal >> command through code >> but i can't run root commands. >> >> how can i write commands that need sudo permission? >> >> thanks! :) >> > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beagleboard/163519a4-5f19-4a74-8a6a-45f091c76859%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/163519a4-5f19-4a74-8a6a-45f091c76859%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORozS%2BzWa%3Dsgnp-Qnv48%3DF_Ooo%3DPFBT9ptw%3D4ZeMW87Atw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
