Bug 576534
Summary: | Password displayed on console when entered in command-line utilities | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Andrey Ivanov <andrey.ivanov> | ||||
Component: | Command Line Utilities | Assignee: | Rich Megginson <rmeggins> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.2.6 | CC: | amsharma, jgalipea, rmeggins | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-07 17:12:58 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 639035, 656390 | ||||||
Attachments: |
|
Description
Andrey Ivanov
2010-03-24 11:48:49 UTC
The full path i have given ("/bin/stty") applies to RHEL/CentOS 5.x. For other distributions and Solaris/HPUX it may be quite different... Do you have a /usr/bin/stty on your system? Is stty a shell built-in for your shell? I think we should use /bin/stty - should work in a posix-y environment. No, i have a standard redhat installation : [root@ldap-test ~]# locate stty /bin/stty /usr/share/doc/bash-3.2/functions/fstty /usr/share/doc/bash-3.2/scripts.noah/stty.bash /usr/share/man/man1/stty.1.gz /usr/share/man/man1p/stty.1p.gz /usr/share/man/man2/stty.2.gz /usr/share/terminfo/e/elks-glasstty /usr/share/terminfo/g/glasstty So stty is only in /bin/stty. AFAIK stty is not a built-in bash command, that's why i told that i was not sure why it happened. Solaris uses /bin/stty - I think it's safe to just use /bin/stty. Created attachment 475042 [details]
0001-Bug-576534-Password-displayed-on-console-when-entere.patch
To ssh://git.fedorahosted.org/git/389/ds.git c9839b3..a7fe1a3 master -> master commit a7fe1a31f0dc5ab2182503c031cac9714c89db2d Author: Rich Megginson <rmeggins> Date: Mon Jan 24 12:53:21 2011 -0700 Reviewed by: nhosoi (Thanks!) Branch: master Fix Description: Add a new configurable path - sttyexec - to configure.ac. This is the absolute path and filename of the stty command to use with the -echo and echo options to disable and enable tty echo for password entry with perl scripts. By default it is set to /bin/stty but it can be overridden on a per-platform basis in configure.ac. I had to move DialogManager.pm to DialogManager.pm.in in order to replace the stty command used there (which actually worked with just stty - not sure why that worked but other perl scripts did not). Platforms tested: RHEL6 x86_64 Flag Day: yes - file renamed - autoconf file changes Doc impact: no [root@rhel61 slapd-rhel61]# /usr/lib64/dirsrv/slapd-rhel61/db2index.pl -w - Bind Password: Not showing pwd while typing.. |