wollik Posted Tuesday at 05:13 PM Posted Tuesday at 05:13 PM Hi Members, I'm setting and reading the GPIO PINs for different BPI's frequently only by bash by maintaining the /sys/class/gpio/xxx values. The only problem is that all these files belong to root :root and I have to use the sudo command in my scripts. I've read about putting a non root user to the gpio group will fix that. But on Armbian there is no "gpio" group ;( That seems the reason why the directory /sys/class/gpio is not prepared as root:gpio Please has someone an idea when this will be implemented? Regards wollik 0 Quote
c0rnelius Posted Tuesday at 05:44 PM Posted Tuesday at 05:44 PM sudo groupadd gpio sudo adduser wollik gpio 0 Quote
Igor Posted Tuesday at 05:46 PM Posted Tuesday at 05:46 PM 33 minutes ago, wollik said: when this will be implemented? When you will add this with a PR here: https://github.com/armbian/build/blob/main/packages/bsp/common/usr/lib/armbian/armbian-firstlogin#L601 and group before that. 0 Quote
wollik Posted yesterday at 12:30 PM Author Posted yesterday at 12:30 PM (edited) @cOrnelius YES I know how to maintain the current system manualy, but with the next release I' l have to do it again. @Igor, your PR modification looks like the right solution adding the missing group T H A N K S! P L E A S E can you also point me where I will find the right spot where I can define the right owner for the some specified directories like the: /sys/class/gpio ? Is there a list for mapping the right owner to a directory? that can be modified? Regards Wolfgang Edited yesterday at 12:33 PM by wollik 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.