clear, short, very good guide.
working perfect.
i have the solution for the problem where a user's SMB username:password is being displayed inappropriately in the "location" field of the KDE Printer Manager. this error was caused by a misunderstanding of what the contents of the "location" field in the printer description are intended to contain. although it may appear that the printer URI information is supposed to be entered in the printer location field, doing so will cause the password disclosure problem referenced earlier. instead of entering the URI information in the location field, use your own descriptive information about the physical location of the printer in your workplace.Bob P wrote:After installing the printer as recommended, I've noticed that any user on the Linux box can browse their way to the printer settings menu in the control center and view the username:password combination that samba is using to access the printer share on the windows box. Specifically, the location of the printer is listed in plain view on the printer configuration menu:
i am a bit concerned about having the username and password for logging onto the Win box being plainly visible like that. is there a better way to do this that would not involve displaying the username and password? i have to admit, i'm not too enthusiastic about the idea of using a guest account with no password, as this would allow anyone to use the printer without restriction.Code: Select all
Type: local printer State: Idle (accepting jobs) Location: smb://username:password@workgroup/hostname/sharename Description: URI: ipp://gentoo:631/printers/HLPJ4 Device: smb://workgroup/hostname/sharename Model: HP Laserjet 4
after logging onto the localhost and supplying your root credentials, you are asked to provide three pieces of information: printer name, printer location, printer description. it is essential that you DO NOT enter the URI location information into this "location" field. doing so will inappropriately disclose your username:password information on the windows box in plain text within the KDE Printer Manager in plain view for all to see!hulk2nd wrote:open your favourite browser and go to http://localhost:631/
go to "manage printers". if you're asked for a password type in your normal root account infos. the first three informations (name, location, description) can be filled just like you want. i choosed to name it epsonc62 but i don't think it is needfull that this name is the same one that you gave your printer on the xp machine. click continue. choose "Windows Printer via SAMBA". click continue.
then tipe in the location:Code: Select all
smb://username:pass@workgroup/host/printer
Code: Select all
smb://username.password@workgroup/domain/sharename Code: Select all
Main Computer LabCode: Select all
smb://username.password@workgroup/domain/sharename Code: Select all
emerge hpijsCode: Select all
lpd://host/printerCode: Select all
lpd://kamer/HP%20DeskJet%20720Cwhy is that?printer State: idle, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: Connection failed with error NT_STATUS_ACCESS_DENIED"
Device URI: smb://holodeck/hp

Code: Select all
emerge pnm2ppaCode: Select all
E [12/Feb/2005:13:50:17 +0200] Unable to convert file 0 to printable format for job 12!
I [12/Feb/2005:13:50:17 +0200] Hint: Do you have ESP Ghostscript installed?
I got it to work by setting up an account with a password. One guy on this thread said he got it to work with a guest account, so I thought I would try(unsuccesfully).shanenin wrote:When I go to print a test page, it starts the process(I can hear the printer move), then it just stops. According to windows XP the page is being printed, but never finished.
Thanks, that solved it for mebillbalt wrote:Normally, a Windows printer is shared with Everyone/Print permissions. No password is required to access the printer.
To print to a printer configured in this manner from Linux using SMB/CUPS, you must connect using the guest account using no password.
When you don't set it up properly, you get this error: "SMB tree connect failed: NT_STATUS_ACCESS_DENIED"
If you get this error, go to http://localhost:631. As you are adding or modifying your printer, when you get to "Device URI:" , enter " smb://guest:@computername/printsharename".
Code: Select all
smb://username:pass@192.168.100.2/hpdeskjetCode: Select all
smb://computername/printername