LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2004, 08:27 PM   #1
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Rep: Reputation: 30
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
 
Old 05-15-2004, 03:10 AM   #2
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
If the printer is on an XP box it will expect you to supply a valid XP user and password.
 
Old 05-15-2004, 07:16 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Which has administrative privileges, no less (at least it has to under Windows 2000).
 
Old 05-15-2004, 09:09 AM   #4
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Oh, so you supply the windows password...hmm ok I'll try that. Although it is windows 98...
 
Old 05-15-2004, 09:20 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
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.
 
Old 05-15-2004, 09:49 AM   #6
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
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.
 
Old 05-15-2004, 11:15 AM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
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.
 
Old 05-15-2004, 11:34 PM   #8
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Well I finally got past that problem, but now when I try to print, it says processing forever and doesn't print.....
 
Old 05-16-2004, 11:14 AM   #9
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
CUPS printing problem EnigmaX Linux - Newbie 1 05-13-2004 09:20 AM
Cups and lpd printing problem visu Linux - General 0 02-02-2004 02:31 PM
Having problem printing with cups. Stanley56 Linux - Software 2 12-24-2003 03:27 AM
CUPS Printing Problem lawrencegoodman Linux - Newbie 1 09-24-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration