LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   CUPS printing problem (https://www.linuxquestions.org/questions/linux-general-1/cups-printing-problem-181584/)

r3dhatter 05-14-2004 08:27 PM

CUPS printing problem
 
I have installed cups and samba. I can see my network printer. When I set it up in the kde printer program, all is well. Then it ask me to supply a user name and password, so I type that in. Then it says retry even though I tried it a hundred times. I also tried it as root and making up my own. I am not sure what the problem is and why it won't let me setup a printer because of a dumb user name and password.

Thanks

aikempshall 05-15-2004 03:10 AM

If the printer is on an XP box it will expect you to supply a valid XP user and password.

motub 05-15-2004 07:16 AM

Which has administrative privileges, no less (at least it has to under Windows 2000).

r3dhatter 05-15-2004 09:09 AM

Oh, so you supply the windows password...hmm ok I'll try that. Although it is windows 98...

motub 05-15-2004 09:20 AM

You can also try "guest" for a username (guest does not have a password, afaik). I think that the guest user should be allowed to use the printer as well. But even Windows 98 has some basic security that wants to know the user connecting to network resources, which means that it must be a known Windows user.

r3dhatter 05-15-2004 09:49 AM

It will not take any passwords or any usernames. I don't understand why...

When I set it up to use guest it says, "Unable to create printer. Error message received from manager:

You are not authorized to access the requested resource.

motub 05-15-2004 11:15 AM

You may not have a guest user on the PC. I don't remember if Win98 uses one, or even disables that account by default.

In the Win98 Network Settings, under File and Print Sharing => Properties, have you checked "I want others to be able to print to my printer"? All I can think of at this point is that maybe the printer is not shared.

Could you explain exactly what the setup here is? The printer is connected to a Win98 box that is networked to the Linux box, right?

Samba appears to be correctly configured if you can see the printer (if it wasn't, you wouldn't be able to connect to network shared resources).

When you add the printer using KPrint, do you click the Administrative Mode before doing so? Only root may add or configure hardware.

What option are you choosing to add the printer?

Have you tried adding the printer via the CUPS web interface? Open a web browser and type http://localhost:631 in the address bar. Go to "Manage Printers" and then click the "Add Printer" button. You will be asked for the root username and password to continue; give it. Give the printer a name (location and description are optional), then "Continue". On the next screen, use the drop-down menu to choose the very last option, "Windows Printer via SAMBA", and then "Continue" again. The correct format for the device URI you will be asked for is:

smb://username:password@ip_address_or_hostname_of_the_windows_box_the_printer_is_connected_to/share_name_of_the_printer.

Then choose a driver class and a driver for the printer. Your printer should be added; if it is not, then please tell us what went wrong, and maybe between failure in two different interfaces, we can figure out what actually is going wrong.

r3dhatter 05-15-2004 11:34 PM

Well I finally got past that problem, but now when I try to print, it says processing forever and doesn't print.....

aikempshall 05-16-2004 11:14 AM

From the command line in root on my slackware box I can

smbclient //abit/epson -U guest

Where abit is what my XP box is known as and epson is the sghare name for the printer. It invites me to type a password in this case there isn't one so I just hit <Return> it should then gives the following prompt

smb: \>

at this prompt I type

print /root/.bash_profile


the .bash_profile is a small text file that exists in my root folder. The print command sends the file to the printer whose share name on the XP box is called epson which then gets printed.

at the next smb: />

type quit or exit.

May give more information


All times are GMT -5. The time now is 12:13 AM.