Closed benarent closed 3 years ago
Or rather — I'll research what's the right sudo
syntax for this command, I had the same issue before.
@benarent sudo fails, because by default sudo applies only to the first command in the line, whereas everything after > is technically the second command, hence some magic needed (sudo sh -c
).
re: should we recommend the command, we have options:
sudo sh -c 'teleport-slack configure > /etc/teleport-slack.toml'
, that would work. teleport-slack configure
without mentioning sudo. This recommendation is correct and kinda assumes that our users know how to work with OS users and permissions themselves. What do you think?
@benarent should we close this? ;)
yes, we can close this.
Issue 1: I can't
sudo teleport-slack configure > /etc/teleport-slack.toml -bash: /etc/teleport-slack.toml: Permission denied
<- If it's not possible to with sudo we shouldn't recommend this method to our users.Issue 2: The CLI outputs slack configure should be
teleport-slack configure