image
image

|


Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old September 18th, 2002, 07:37 AM
Registered User
 
Join Date: May 2002
Location: Amsterdam
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
tsaar is on a distinguished road
CUPS listening when Printersharing is off

I have printersharing off.
Yet
'sudo lsof -i'
returns (among other things):
cupsd 322 root TCP localhost:ipp (LISTEN)
cupsd 322 root UDP *:ipp

So: cupsd is listening on the ipp-port (that's 631)
sure enough, I can connect :
http://127.0.0.1:631
But only from my own machine....(which eases my mind a little)

Questions:

- Why is cupsd listening even if I have printersharing off ?
- How/Where is it controlled that only localhost can connect?
(It's not my firewall, can't find cupsd in xinetd or inetd.conf)

Thanks !

Maarten
Reply With Quote
  #2  
Old September 18th, 2002, 08:23 AM
davidbrit2's Avatar
Licensed Computer Geek
 
Join Date: Sep 2000
Location: Michigan, USA
Posts: 787
Thanks: 0
Thanked 0 Times in 0 Posts
davidbrit2 is on a distinguished road
Since cups is running its own little http server, I would assume that it's taking care of the address restrictions itself. It can likely be configured by editing the appropriate file, but I sure haven't been able to find it yet.

And cups is used for printing with UNIX applications, right? It might not be related to printer sharing, so that could be why it stays on. I wouldn't mind finding a way to turn it off, though...
__________________
You can have my iBook when you pry it from my cold, dead fingers.
iBook - The computer of choice for the enlightened CS major. Come on Apple, let me do a commercial. ;-)
"An alloc a day keeps the DRAM away!"
Reply With Quote
  #3  
Old September 19th, 2002, 06:51 AM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
It's possible that the explanation is this: CUPS always listens to port 631. When Printer Sharing is off, it only listens to the local computer for a command to turn print sharing on. Then it listens to everything.

-Rob
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #4  
Old September 19th, 2002, 05:08 PM
Registered User
 
Join Date: Mar 2002
Location: Denver
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
BSDimwit is on a distinguished road
cups is a daemon

much like lpd is... it gets started at bootup and runs and runs etc. Not only is cups used for printer sharing, in 10.2 it also allows someone to print from your mac to 1) another machine's printer via IPP or lpd protocals 2) a locally installed but unsupported by apple or hp etc printer.

From what I have gathered it seems that if you have a printer that was previously supported by apple, or hp, or lexmark, then you don't necessarily go through the cups daemon to get something printed. However, if your printer was not supported previously(like mine... non postscript installed on a remote windows box) cups now becomes your print server, albeit a locally installed one that will run your printjob through all the appropriate ghostscript filters to turn your ps job into one that is suited for a non ps deskjet or laserjet.

there is a cupsd.conf file that can be edited to allow, disallow, require password...etc and its setup much the same way that the apache.conf file is. I can't be sure but I think its located at

/usr/libexec/cups but don't quote me on that...

will get you were you need to go...

Quote:
find / -name cupsd.conf -print
Anyhow... if you want to disable cups completely... edit /etc/hostconfig and find the enable_cups line and turn it off.
__________________
BSDimwit
Titanium Powerbook 550
512MB ram
Reply With Quote
  #5  
Old September 19th, 2002, 10:52 PM
Koelling's Avatar
I Think Different
 
Join Date: Oct 2001
Location: Colorado
Posts: 602
Thanks: 0
Thanked 0 Times in 0 Posts
Koelling is on a distinguished road
I just figured out how to print from OpenOffice.org and it was through this very method. It seems my print command wasn't loud enough to wake up the printer but I was able to start the job by going to 127.0.0.631. I'm all for keeping it active!
__________________
1 ghz pb w/ 768M RAM, 10.3.latest (usually). Yeah life is good.
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cups stopped with status 2 floris Networking & Compatibility 4 September 17th, 2003 08:45 AM
Tell people what you're listening to...right now! wdw_ Mac OS X System & Mac Software 10 December 6th, 2002 04:57 PM
CUPS and SMB OH NOOO! X Rocks Unix & X11 5 October 30th, 2002 03:06 PM
Expecting more from CUPS, am I missing something? theCaptain Mac OS X System & Mac Software 9 October 2nd, 2002 05:49 PM
CUPS on 10.1.5 Cliffster Mac OS X System & Mac Software 3 October 2nd, 2002 08:31 AM


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


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.