Bug 38396 - Printtool has troubles with SMB share passwords
Printtool has troubles with SMB share passwords
Product: Red Hat Linux
Classification: Retired
Component: printtool (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-04-30 11:24 EDT by Lindsay Todd
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-01-10 08:59:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Lindsay Todd 2001-04-30 11:24:10 EDT
I used printtool to configure an SMB-shared printer.  There is a dollar
sign ($) in the password needed to connect to the share.  The password is
stored in /var/spool/lpd/<QUEUE>/script.cfg, apparently a Bourne-shell
script fragment, as a variable assignment.  However, the RHS of the
assignment is double-quoted, with no escaping of the dollar sign. 
Consequently, variable substitution takes place, and the incorrect password
is used.

I can work around this bug by editing the script.cfg file to use single
quotes.  However, if I use printtool to change anything else, this file is

Note that the documentation says nothing about needing to escape dollar
signs, etc...
Comment 1 Tim Waugh 2002-01-25 12:36:12 EST
I'm pretty sure this is fixed in the current release.

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