--
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 beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I very much appreciate the reply. I was accessing Cloud9 through eth0 not usb0 so root access from the network was possible. Were I only accessing the BeagleBone over the usb network I wouldn't have been concerned. However I remotely connected over port 3000 and saw a command line running with root.
I tried chasing down the problem but found the Cloud9 IDE just too convoluted to figure out. I tried but failed to change the default user and password in the configuration file referred to in my earlier post. At that point I simply killed Cloud9, and just used Byobu (tmux) terminals to work with node.js.
After giving him a configured BBG (he'd have been dead in the water with the image that came in the BBG eMMC, which really breaks the ideal for a newbie idea) and showing him how to install the Windows drivers and connect to the BBG with Chrome web browser, it clearly was a great starting point for him.
Anything of this nature still has a learning curve. Personally, I think things of this nature are a waste of time. Not because they're not handy, or cool. But instead you have to spend a time investment to learn anything. So you may as well learn the "underlying basics" so you're better prepared in the future to deal with more complex problems.After giving him a configured BBG (he'd have been dead in the water with the image that came in the BBG eMMC, which really breaks the ideal for a newbie idea) and showing him how to install the Windows drivers and connect to the BBG with Chrome web browser, it clearly was a great starting point for him.So a very quick example . . . Not knowing what Node-RED really is, I'd have to spend a considerable amount of time learning this new "software technology", when I could instead just write my own code and be done with it. Now sure, because I'm an experienced developer, who *now* has a decent bit of javascript / Nodejs experience, this may be easier for me. However, I had to learn all of this, just like anyone else, and in fact I'm by far not a Nodejs "expert". And in fact, I knew very little of Nodejs 3 years ago when we got our first BBB's . . .
args.push("export ISOUTPUTPANE=0;" + (options.defaultEditor ? " export EDITOR='`which c9` open --wait'; " : "") + BASH + " -l");
}
Terminals in cloud9 run bash -l so they will be logged in as the same user which have launched the server.js.
See https://github.com/c9/core/blob/6cc153e712c64ef8326c195d27a2c224f84429c6/node_modules/vfs-local/localfs.js#L1817
You could either modify that file to run a different command, or modify the script that launches the server.js, to launch it from the user you want.
--Harutyun Amirjanyan <comm...@c9.io>