When you use SQLA tools like e.g. dbupdate or similar, to automate specific tasks, how can you use the -c parameter without showing the password? Or exists any alternative approach which hides the password from the command line?

asked 08 Apr '14, 08:49

Martin's gravatar image

Martin
8.6k116150237
accept rate: 14%


AFAIK, all (or at least most) utilities support the @data command line parameter in conjunction with configuration files for that use:

@data Reads in options from the specified environment variable or configuration file. See Configuration files.
If you want to protect passwords or other information in the configuration file, you can use the File Hiding utility to obfuscate the contents of the configuration file. See File Hiding utility (dbfhide).

(Note, AFAIK DBFHide itself does usually just obfuscate the files - unless you run it on Windows with -w or -wm.)


Another (possibly preferred) approach for scheduled tasks would be to rely on scheduled events that can run on their own without explicit credentials. That way the server can itself do backups and the like.

permanent link

answered 08 Apr '14, 09:00

Volker%20Barth's gravatar image

Volker Barth
30.3k301453660
accept rate: 32%

edited 08 Apr '14, 09:11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×5

question asked: 08 Apr '14, 08:49

question was seen: 309 times

last updated: 08 Apr '14, 09:11