Bug 230533
Summary: | mount.cifs can't handle comma in password | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Dominik Fischer <dom_fischer> |
Component: | samba | Assignee: | Simo Sorce <ssorce> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 5.0 | CC: | herrmann, riek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-03-26 12:21:30 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: |
Description
Dominik Fischer
2007-03-01 09:49:56 UTC
Search for "comma" under: http://samba.osmirror.nl/samba/ftp/cifs-cvs/mount.cifs.c This gives you the following: (...) if(mountpassword) { /* BB add handling for commas in password here */ strncpy(mountpassword,temp_val,length); got_password = 1; } (...) What about using a credentials file instead of putting the password on the mount command line? Is there anything preventing you from using a credentials file? If so what? Maybe that's easy to fix quickly. (password on command lines are usually bad anyway as they may leak through ps for example) Since I didn't want the password in the command history I first use the credential file. After that I tried out passing the password on the command line and last I left out the password and entered it after I got prompted for it. Nothing of that worked with comma in the password. Does using the credentials file work at your site? Work for me on RHEL5. Command line can;t handle passwords with coma, but the other three mechanisms work: - credential file - PASSWD env var - password prompt I am inclined to close this bug, can you still reproduce this on RHEL5 GA ? I've verified this in RHEL5 GA: it works like described in the last comment. So I agree to close this bug for now. |