wollik Posted January 28 Posted January 28 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
Igor Posted January 28 Posted January 28 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 January 29 Author Posted January 29 (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 January 29 by wollik 0 Quote
Igor Posted 22 hours ago Posted 22 hours ago On 1/29/2025 at 1:30 PM, wollik said: 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 ? Not sure if I understand you right, but perhaps here: https://github.com/armbian/build/blob/main/packages/bsp/common/usr/lib/armbian/armbian-firstrun 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.