Or you can google the setuid bit.  This would allow your application to run 
as root without having to be logged in as root.

On Monday, February 2, 2015 at 12:10:31 PM UTC-5, Nic Cyn wrote:
>
> You are not really asking the right question (its ok you are new to this). 
> However the problem you have really has nothing to do with the Beaglebone 
> Black - it is really a Linux issue and any solution to it would be common 
> to any Linux system.
>
> Try googling something like "*linux auto run program on boot as root*" 
> and you will find a lot of help.
>
> On Monday, 2 February 2015 14:20:41 UTC, Julian Gold wrote:
>>
>> We have a  Revision C board running debian, and wish to use a couple of 
>> the GPIO channels from within the (C++) software we are developing. This 
>> requires writing to the "file" /sys/class/gpio/export, but this requires 
>> root permission. In bash I can just "sudo su", but this is surely not going 
>> to work from C++?
>>
>> Presumably if I logged in as root and ran my code, the permissions would 
>> be correct. However the board boots to the desktop with "debian" as the 
>> default user. Can this be changed to root and how?
>>
>

-- 
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