Hi, I want to allow a ssh command to all octopus instances.
Following the BOA Wiki, I added the command in /etc/lshell.conf, it works for octopus users, but after a while that command isn't available anymore

I researched, and discovered that the /etc/lshell.conf file it's recreated ever X minutes by a xdrago cron, copying this file /var/xdrago/conf/lshell.conf

So, if I want to to add a ssh, should I edit /var/xdrago/conf/lshell.conf instead of /etc/lshell.conf?
In that case I think the BOA wiki should be modified, because it explains a method to allow a ssh command, that doesn't work

tx
cheers!

Comments

omega8cc’s picture

Component: Code » Documentation
Category: bug » support
Status: Active » Closed (works as designed)

Yes, you should edit the config template: /var/xdrago/conf/lshell.conf

Feel free to modify the BOA wiki docs - it is a wiki :)

sluc23’s picture

great, I wanted to be sure

BOA Wiki updated!

cheers

lunk rat’s picture

Version: » 6.x-2.x-dev
Issue summary: View changes

I edited /var/xdrago/conf/lshell.conf, added allowed command, and it updated /etc/lshell.conf

Still my command was forbidden for octopus lshell users. I had to wait, about 30 minutes, and magically it works.