Thanks you Robert :) On Jul 21, 2017 7:46 PM, "Robert Nelson" <[email protected]> wrote:
> On Fri, Jul 21, 2017 at 6:39 PM, Sebastián Sáez <[email protected]> wrote: > > Hi, > > > > In Debian stretch, cloud9 is no longer root > > > > Is it possible to remove root access to cloud 9 for Debian 8? > > Yes, just a few changes required: > > in the cloud9.service file: > > Change the [Service] to have: > > WorkingDirectory=/opt/cloud9/build/standalonebuild > EnvironmentFile=/etc/default/cloud9 > ExecStartPre=/opt/cloud9/cloud9-symlink > ExecStart=/usr/bin/nodejs server.js --packed -w /var/lib/cloud9 > SyslogIdentifier=cloud9ide > User=1000 > > create the "symlink" > > /opt/cloud9/cloud9-symlink > **************** > #!/bin/sh > > user=$(getent passwd 1000 | awk -F: '{ print $1 }') > > if [ -d /home/${user}/.c9 ] ; then > rm -rf /home/${user}/.c9 || true > else > if [ -f /home/${user}/.c9 ] ; then > rm /home/${user}/.c9 || true > fi > fi > ln -sf /opt/cloud9/.c9/ /home/${user}/ > **************** > > The symlink file is just to fix up the termimal in cloud9, otherwise > "~/,$home, etc" don't work. > > There's one bonescript bug Jason is working on, so that "pwm" will > work when root-less. > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > -- 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/CA%2B-J9cYePASZZ3woFwYnekekp-g2E72OftsM90ryppsOQwO3Pg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
