You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If permissions / owner of config file is incorrect, the command outputs long one-liner containing two commands (chmod and chown) to call to fix the issue.
Many users tend to overlook that there are two commands and give up after one does not fix the issue
In Snowflake CLI on MacOS default config path is inside "Application Support" directory - space inside the path turned out to be problematic for some users
/Users/pczajka/Snowflake/venv3.12/lib/python3.12/site-packages/snowflake/connector/config_manager.py:344: UserWarning: Bad owner or permissions on /Users/pczajka/Library/Application Support/snowflake/config.toml. To change owner, run `chown $USER /Users/pczajka/Library/Application Support/snowflake/config.toml`. To restrict permissions, run `chmod 0600 /Users/pczajka/Library/Application Support/snowflake/config.toml`.
warn(f"Bad owner or permissions on {str(filep)}{chmod_message}")
What is the desired behavior?
Reformattinmg the message to highlight that there are two commands to call (fix 1) and add quotes around filenames (fix 2).
For example:
/Users/pczajka/Snowflake/venv3.12/lib/python3.12/site-packages/snowflake/connector/config_manager.py:344: UserWarning: Bad owner or permissions on /Users/pczajka/Library/Application Support/snowflake/config.toml.
* To change owner, run `chown $USER "/Users/pczajka/Library/Application Support/snowflake/config.toml"`.
* To restrict permissions, run `chmod 0600 "/Users/pczajka/Library/Application Support/snowflake/config.toml"`.
warn(f"Bad owner or permissions on {str(filep)}{chmod_message}")
How would this improve snowflake-connector-python?
Improve user experience (also improve user experience of Snowflake CLI)
References and other background
No response
The text was updated successfully, but these errors were encountered:
What is the current behavior?
If permissions / owner of config file is incorrect, the command outputs long one-liner containing two commands (
chmod
andchown
) to call to fix the issue.What is the desired behavior?
Reformattinmg the message to highlight that there are two commands to call (fix 1) and add quotes around filenames (fix 2).
For example:
How would this improve
snowflake-connector-python
?Improve user experience (also improve user experience of Snowflake CLI)
References and other background
No response
The text was updated successfully, but these errors were encountered: