I have installed snowsql using root account in linux which installed the components on /opt/snowsql directory and all of its other components in ~/.snowsql. The problem is I can run the snowsql commands using root user, but the other users cannot run the snowsql command. How to enable this ?
Thanks, Naveed
I normally suggest installing snowsql in
/opt/snowflake- but the install in/optshould be good.You'll need to ensure you've done the following in a multi-user linux host:
chmodcommand, I normally dochmod 777 /opt/snowflake/snowsql/optis in it, and edit their PATH as neededWhen a user account invokes the snowsql client for the first time, it should create the
~/.snowsqldirectory for them, but if you'd like to have it created for them, you can create a process to do that, just remember to run thechowncommand to the user. Some shops do this and copy a company-specific config file to those new directories so users can use configs (-cargument in the command).If all the above doesn't work, please post the actual error message the user accounts are receiving. Right now we don't know what the actual error is: is the command not being found (PATH issue) or is it a permissions issue (fixed by chmod), or is it something else?