I'm trying to do this:

http://www.phys-x.org/rbots/index.php?option=com_content&view=article&id=104:lesson-1-beaglebone-black-blink-led&catid=46:beaglebone-black&Itemid=81

I'm running ubuntu on my beaglebone black with nodejs 0.8.x

I can't figure out how to get it running without running as root.  It seems 
like there is some sort of permissions problem with my user because the 
project runs fine under root.  I added myself to the user group dialout but 
it didn't make a difference.  My question is, what do I need to do to give 
my user permission to the pin states.  The crash looks like this:

fs.js:338
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), 
mode);
                 ^
Error: EACCES, permission denied 
'/sys/class/leds/beaglebone:green:usr0/trigger'
    at Object.fs.openSync (fs.js:338:18)
    at Object.fs.writeFileSync (fs.js:756:15)
    at Object.f.pinMode 
(/home/ubuntu/projects/hello_express/node_modules/bonescript/index.js:132:20)
    at Object.<anonymous> 
(/home/ubuntu/projects/hello_express/hello_express.js:31:3)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:245:9)


Thanks in advance.

- Samuel

-- 
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/groups/opt_out.

Reply via email to