On Friday, July 21, 2017 at 4:47:12 PM UTC-7, RobertCNelson wrote:
>
> On Fri, Jul 21, 2017 at 6:39 PM, Sebastián Sáez <[email protected] 
> <javascript:>> 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/ 
>

Tagging along to this discussion...  Where is the "cloud9.service" file?

-- 
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/31710079-f420-42d8-8f6d-9aab1ded3836%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to