Bug 135643 (IT_51707)
Summary: | 2.1AS: rexec prompts for username/password before checking ~/.netrc | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 2.1 | Reporter: | David Lehman <dlehman> | ||||
Component: | rsh | Assignee: | Karel Zak <kzak> | ||||
Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 2.1 | CC: | mdavis, tao | ||||
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: | 2004-12-13 20:35:52 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: | |||||||
Attachments: |
|
Description
David Lehman
2004-10-13 22:33:40 UTC
Probably the simplest solution is to duplicate ruserpass.c from glibc-<version>/inet/ or from ftp (netkit-ftp). This way rexec can process an existing ~/.netrc and then prompt for username/password if needed before calling rexec(3). This is how our ftp(1) does it. Created attachment 105217 [details]
Patch to read/parse ~/.netrc before prompting for username/passwd
I've verified the patch prevents the prompt when .netrc is populated and that
-n still causes rexec to prompt.
Correction to initial comments: rexec prompts for password but not username (unless -n option specified). Thanks Dave, fixed version will soon appear in errata An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2004-605.html The path netkit-rsh-0.17-rexec-netrc.patch is not in RHEL3 yet. I think we still have development period for U5. I will add it to this branch next week. |