cloudflared
cloudflared copied to clipboard
Permission denied
bash: /home/linuxbrew/.linuxbrew/bin/cloudflared: Permission denied
chmod 0755 /home/linuxbrew/.linuxbrew/bin/cloudflared
or
chmod a+x /home/linuxbrew/.linuxbrew/bin/cloudflared
chmod 0755 /home/linuxbrew/.linuxbrew/bin/cloudflared
or
chmod a+x /home/linuxbrew/.linuxbrew/bin/cloudflared
After doing that:
cloudflared
cloudflared: cannot execute binary file: Exec format error
or with sudo:
sudo cloudflared
cloudflared: 1: Syntax error: word unexpected (expecting ")")
@korenmic That sounds like you have the wrong binary version for the architecture of your machine.
i.e. trying to run a 64 bit binary on a 32 bit machine, or something similar
Had the same issue running homebrew on ubuntu.
Fixed by using packages for linux: https://pkg.cloudflare.com/index.html