How to disable Export and Import Path

if the OmniSci server is secure and don’t want to add export and Import path in whitelist configuration.

Please let us know if we can disable this whitelist configuration for export and import ?

Hi @Sumit,

to make the server able to read and write files in any directory of the server you have to add the root of your server to the Export and Import allowed paths in the omnisci.conf file or using the switches via CLI.

as an example

bin/omnisci_server --data /mapd_storage/data_test --allowed-import-paths '["/"]' --allowed-export-path '["/"]'

this will allow the omnisci server to read and write in any path in the system the user running omnisci has the permission to.

Regards,
Candido

thanks @candido.dessanti for your lighting fast response.

Please let us know if i can do following
Add the following line in omnisci.conf

allowed-export-paths = ["/"]
allowed-import-paths = ["/"]

and restart the database.

Kindly advise.

Yeah, every parameter can be used indifferently as a CLI switch adding a or appended to the main section of omnisci.conf file

So adding

allowed-export-paths = ["/"]
allowed-import-paths = ["/"]

On you omnisci.conf file and restarting the database is going to work flawlessly

Regards,
Candido

thanks for conformation. will do now.