Improve error message if data dir and config unavailable due to permissions#10044
Improve error message if data dir and config unavailable due to permissions#10044stevenGravy merged 20 commits intomasterfrom
Conversation
|
We really should be confirming that this is actually a permission error before we log this error. Something like: As for the error message, how about something as simple as:
|
…port configuration file (/etc/teleport.yaml) and it fails to load due to permission error.
Thanks @zmb3 I have set this as the output and permission error handling. I also modified so that if the user can't access the Before: ERROR: failed to open file: /etc/teleport.yamlold
open /etc/teleport.yamlold: permission deniedUpdated to: ERROR: failed to open file for Teleport configuration: /etc/teleport.yamlold. Ensure that you are running as a user with appropriate permissions. |
zmb3
left a comment
There was a problem hiding this comment.
Just a couple minor comments.
Co-authored-by: Zac Bergquist <zmb3@users.noreply.github.com>
Co-authored-by: Zac Bergquist <zmb3@users.noreply.github.com>
Co-authored-by: Zac Bergquist <zmb3@users.noreply.github.com>
addresses #10032 where user gets very cryptic error message if running w/o rights to data dir.
If a user starts
teleportand the process is running without rights to create the data dir or maintain file in data dir will now get this message.