>
> *This is why Unix/Linux has groups. Do the following:*
>

Using groups is not necessarily the safest way to go about things John. But
I do agree it is a possibility. The only real contention that I have with
using groups. Is . . . my sudo example can be used on a very specific
command, only allowing that very specific command, where all others, no
matter how similar, if not exactly the same will not run. My example if not
really a good illustration of this but imagine this:

echo '1' > /sys/class/gpio/gpio67/value /* allowed */
echo '0' > /sys/class/gpio/gpio67/value /* not allowed */

Obviously the above is very contrived, but there can be a need for
something similar.



Also, when using groups, you do not really want to change groups, but add
groups. e.g. you *do not* want to change group root to wheel ( or whatever
group you want ) for a specific item. Since the system likely needs root to
have access to given items for various reasons. You also want to be as
specific as possible when creating / using groups. As using groups,
wrongly, is a perfect way to add a huge gaping security hole into a system.

On Fri, Feb 5, 2016 at 4:34 PM, John Syne <[email protected]> wrote:

> This is why Unix/Linux has groups. Do the following:
>
> ls -la /dev
>
> You will see groups such as i2c, dialout, tty, etc. If you want to access
> these devices from a regular user account, add your user to those groups.
> If you need to use a device that has root:root, then change the group and
> add your user account to that group.
>
>
> Regards,
> John
>
>
>
>
> On Feb 5, 2016, at 2:13 PM, Drew Fustini <[email protected]> wrote:
>
> I noticed that the Raspberry Pi kernel adopted /dev/gpiomem to provide a
> way for non-root users to access GPIO:
>
>     Add /dev/gpiomem device for rootless user GPIO access:
>     https://github.com/raspberrypi/linux/pull/1112
>
> Is there anything comparable for BeagleBone?  Anyone have ideas/plans?
>
> I started thinking about this after seeing this post on the Adafruit forum:
>
>     Trying to use Adafruit_BBIO library and run as non-root user
>
> https://forums.adafruit.com/viewtopic.php?f=49&t=89338&p=450036#p450036
>
>
> thanks,
> drew
>
> --
> 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].
> 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].
> 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to