Debian Codegraph @

doc/README.read_password_from_file

raw
1 Issue:
2 ======
3 All command-line utilities which support -password parameter are
4 vulnerable to password sniffing, especially when they're run from
5 scripts. Since 2.1, all Firebird utilities replace argv[PASSWORD]
6 with *, but better solution for hiding password from others in
7 process list should be reading it from file or asking for it on
8 stdin.
9
10 Scope:
11 ======
12 Security issue.
13
14 Document author:
15 =================
16 Alex Peshkov ([email protected])
17
18 Document date: 2008-11-30
19 ==============
20
21
22 All utilities have new switch
23 -fetch_password
24 which may be abbreviated according with utility rules.
25 The exception is QLI, where -F should be used.
26
27 Switch has required parameter - name of file with password. I.e.:
28 isql -user sysdba -fet passfile server:employee
29 will load password form file "passfile", using its first line
30 as password.
31
32 One can specify "stdin" as file name to make password be read
33 from stdin. If stdin is terminal, prompt:
34 Enter password:
35 will be printed.
36
37 For posix users - if you specify '-fetch /dev/tty' you will also
38 be promted. This may be useful if you need to restore from stdin:
39 bunzip2 -c emp.fbk.bz2 | gbak -c stdin /db/new.fdb -user sysdba -fetch /dev/tty