initial commit
[askpass.sh.git] / README.md
1 askpass.sh
2 ==========
3
4 An akspass script in bash with visual feedback.
5
6 Why
7 ---
8 In general there is no feedback when entering passwords in commandline programs. This can lead to the problem that you enter your password into another application that just got the focus while you were typing. You don't get suspicious because there is no difference between no feedback an typing elsewhere. And then you you've postet your password to a publick chatroom...
9
10 Known Issues
11 ------------
12 - sometimes entering a pasword can't be aborted (at least when used with sudo), ctrl + c doesn't work well, ctrl + d doesn't work very well
13
14 Deployment
15 ----------
16 - I copied the script to a directory owned by root and changed owner and group to root
17 - sudo, /etc/sudoers:
18   - make sudo echo stars when you type the password: `Defaults pwfeedback`
19   - specify a default program that is used to read the password: `Defaults askpass = /path/to/askpass.sh`
20     - is only used, when sudo is invoked with option -A and can be overwritten by the environment variable SUDO_ASKPASS
21   - I use: `alias sudo='SUDO_ASKPASS=/path/to/askpass.sh /usr/bin/sudo -A '`
22 - encfs:
23   - just add the option --extpass=/path/to/askpass.sh
24 - su doesn't seem to have a similar option :-(
25 - ssh doesn't provide this option for terminal use :-(
26