On Mon, 10 May 2021 22:25:54 -0400, Dennis Lee Bieber writes:
>debian@beaglebone:~$ sudo echo 48 > /sys/class/gpio/export
>[sudo] password for debian:
>echo: write error: Operation not permitted
>
> To my knowledge, the redirection part is still done as the debian user,
>only the echo is being done by sudo.
you're absolutely correct, but there's more than one way to do that.
for example,
sudo sh -c "echo 48 > /sys/class/gpio/export"
would do all the stuff as root.
>debian@beaglebone:~$ sudo su
*shudder* *twitch*
--
Best Regards,
Alexander Zangerl
IT Engineer
BREATHE-SAFE intelligent cabin air filtration
Keeps your lungs and cabin dust free!
Head Office: 62 Mica Street, Carole Park QLD 4300 Australia
Western Australia: 169 Chisholm Crescent, Kewdale WA 6105
Tel: +61 7 3276 7833 M. +61 415 482 341 E. [email protected]
--
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/12784-1620700409.442939%40oPjB.cQRa._wK_.