Bug 80784 - In SMB printer configuration, password escape character ends up in the password string
In SMB printer configuration, password escape character ends up in the passwo...
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-printer (Show other bugs)
8.0
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
: 87748 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-31 05:03 EST by Ari Inki
Modified: 2008-05-01 11:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-27 09:54:21 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ari Inki 2002-12-31 05:03:55 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202

Description of problem:
Try to configure a SMB printer to use via the redhat-config-printer-gui. If the
SMB password contains a character which usually is escaped, the escape character
ends up in the password string. To verify enable smbprint.log in
/usr/share/printconf/util/smbprint

84c84
< #echo $share $password $translate $x_command > /tmp/smbprint.log
---
> echo $share $password $translate $x_command > /tmp/smbprint.log

and see what ends up in the smbprint.log


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. SMB password with e.g. '!' character
2. Try to use a SMB printer with the account which has '!' in the pwd
3. '!' is incorrectly escaped, with the escape character in the pwd
    

Actual Results:  Failure to perform requested operation & account lockout.

Expected Results:  Ability to perform requested operation.

Additional info:
Comment 1 Miloslav Trmac 2002-12-31 13:14:18 EST
Plus the variables should be referenced as "$share",
to avoid share='x`rm -rf /usr`y' surprises (generally,
any shell metacharacters).
Comment 2 Miloslav Trmac 2002-12-31 13:15:28 EST
Oops, make that
x='a b'
surprises.
Comment 3 Tim Waugh 2003-01-17 09:19:39 EST
Using LPRng, right?
Comment 4 Ari Inki 2003-01-17 10:23:56 EST
Right. Using LPRng.
Comment 5 Tim Waugh 2003-01-27 09:54:21 EST
'!' was being mistakenly escaped.  Other characters need escaping though.

Fixed package is redhat-config-printer-0.6.41-1.
Comment 6 Tim Waugh 2003-04-02 06:11:42 EST
*** Bug 87748 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.