LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-31-2010, 06:28 AM   #1
ajbardhan
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
Angry “CUPS-Add-Modify-Printer: Unauthorized”


Hello
I just setup CUPS to access a network printer, which is connected to a Window Vista machine.
I configured the Samba configuration file (/etc/samba/smb.conf.)
I can see printer by typing
smbclient -L <Window Vista computer name> –N

My printer is CanonMP210 and sharing name also CanonMP210.
I downloaded and Install printer driver of CanonMP210 for linux named(Canon_MP210_debian.tar) and installed it on Ununtu Linux computer.

Now if I type “lpadmin -p CanonMP210 -v smb://<Window Vista computer name>/canonMP210 -P /usr/share/ppd/canonmp210.ppd” in command prompt and enter, it register the error in err log
CUPS-Add-Modify-Printer: Unauthorized

I also configured “/usr/lib/cups/backend/smb with the following text

lpadmin -p CanonMP210 -v smb://< Window Vista computer name> /canonMP210 -P /usr/share/ppd/canonmp210.ppd
enable CanonMP210
accept CanonMP210
lpadmin -d CanonMP210.

Then I restarted samba and cups and samba.

This Also shows in the error log “Unable to bind socket for address 192.168.0.2:631 - Cannot assign requested address.”

lpinfo –v shows the following details
network socket
network http
network ipp
network lpd
direct scsi
network smb

Socklist command also reveals port 631 is in use(please see below)

type port inode uid pid fd name
tcp 3306 13489 103 4565 13 mysqld
tcp 139 13748 0 4668 20 smbd
tcp 445 13747 0 4668 19 smbd
udp 137 13709 0 4666 8 nmbd
udp 137 13706 0 4666 6 nmbd
udp 138 13710 0 4666 9 nmbd
udp 138 13707 0 4666 7 nmbd
udp 68 11853 100 4028 4 dhclient3
udp 631 14687 0 4872 4 cupsd

Can any one Tell me how to use printer on Window Vista machine from Ububntu Linux machine?
Thanks
 
Old 03-31-2010, 06:33 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
I am using a Canon MP printer connected to windows machine on Ubuntu. And have never needed to do all this. Just add the drivers for the printer and then add the printer either via cups or add printer wizard.

Also if you want to use all the commands, have you tried doing all that as root?
 
Old 03-31-2010, 09:26 PM   #3
ajbardhan
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Yep, I have done as a root. I am using Ubuntu as a CLI. No GUI interface on my computer. I use the instructions from http://www.faqs.org/docs/Linux-mini/...-Printing.html and http://www.faqs.org/docs/Linux-mini/...-Printing.html .

But printer is not interfacing with my Linux machine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I used to know how to add/modify custom CUPS interface files - not now! gtjmn308 Linux - Newbie 3 03-21-2009 07:30 AM
CUPS - unauthorized to manage EclecticOS Slackware - Installation 3 10-15-2005 05:56 AM
Can't add a new CUPS printer rob_tanner Red Hat 1 01-31-2005 07:11 AM
Windows Add Printer Wizard and CUPS mdavidn Linux - Hardware 0 11-28-2004 07:40 PM
can't add a cups printer strong.steve Linux - Hardware 5 09-23-2003 12:52 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration