Can I do a /balena-cli/balena login as a non-root user ?

I am not able to login to balena in my terminal as a non root user. Is there a way to do it.
I get a Permission denied error when I try.

@agaurav, perhaps some folders or auth token got owned by the root user when the CLI was run as root (perhaps with sudo) at some point. Check if the following troubleshooting answer is helpful: https://github.com/balena-io/balena-cli/blob/master/TROUBLESHOOTING.md#i-get-eacces-permission-denied-when-logging-in

If it doesn’t help, try running the CLI in debug mode, and please share the output here:

$ DEBUG=1 balena login
...

Hi,

Were you able to get this sorted? Please let us know if there’s anything we might do from our end.

Best regards,
John

@jtonello
This has been sorted. I asked the sys admins to give me privilege to run the balena-cli commands as a non-root user.

Hi @agaurav

Glad to hear that your issue earlier this year was sorted!

Just FYI for people with similar questions - a PR has been merged to address this issue, to display a more helpful error message when this matter arises.

Kind regards
Alida