All of lore.kernel.org
 help / color / mirror / Atom feed
* Give others users than "root" access to GPIO (or commands)
@ 2018-05-29 10:41 Arno Steffens
  2018-05-30  6:03 ` ChenQi
  2018-05-30  7:21 ` Richard Purdie
  0 siblings, 2 replies; 8+ messages in thread
From: Arno Steffens @ 2018-05-29 10:41 UTC (permalink / raw)
  To: pokyyoctoproject.org

I have to add a user other than root to start a program which operates with i2c, spi, gpio.
For this I added an init-script /etc/rc5.d to make it /dev/* r/w for "others".
That works for i2c and spi but not for GPIO. As most of the files the user has to access will only created after the exporting the GPIOs (more or less doing echo xxx > /sys/class/gpio/export).
But this new created /sys/class/gpio/xxx is not writable by user.

Maybe I am doing it completely wrong, but how can I achieve this to become possible?
I checked the mega-manual, but there is not much mentioned about groups (27.36. extrausers.bbclass).
Best regards
Arno

Maybe I also have to give this user the permission to reboot, which is right now only possible for root


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-06-01 11:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-29 10:41 Give others users than "root" access to GPIO (or commands) Arno Steffens
2018-05-30  6:03 ` ChenQi
2018-05-30 10:01   ` Arno Steffens
2018-05-30 10:18     ` Richard Purdie
2018-06-01 11:18       ` Arno Steffens
2018-05-30 10:36     ` star
2018-05-30  7:21 ` Richard Purdie
2018-05-30 10:20   ` Arno Steffens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.