Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm configuring a new install of Ubuntu 9.04 laptop and when I do a port scan, I find that TCP 631 (IPP) is open. What do I do to disable this listening port?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

CUPS, which is part of the Linux Standard Base, is enabled. To stop the service:

sudo /etc/init.d/cupsys stop

To disable it from startup:

update-rc.d -f cupsys remove
update-rc.d cupsys stop 20 2 3 4 5 .
share|improve this answer
    
Or don't - it's possible that Bob didn't realize this is CUPS, and he may not want to shut printing down. –  David Thornley Aug 19 '09 at 17:09
    
I do know that it's CUPS, and printing is not necessary for this machine so shutting down the service is a viable options. So does CUPS require this port be listening in order to function? –  Bob Aug 19 '09 at 19:17

Don't disable it, this is your printer!

To enable it again you can add port TCP 631 to your Firewall. Just type 631 in the Firewall.

More info at the Ubuntu Forums:

Thank you ! I have just deleted the port 631/tcp from FIREWALL because Facebook disconnected me alone wich gave me suspicions. So this was my printer !!! So just I'll just add again ALLOW IN TCP 631 inside my FIREWALL.

share|improve this answer

Another way to stop this print server is to open a terminal shell ctrl + alt + t and type sudo service cups stop

This will stop the server and close the port, but it will restart on a reboot. You could also restart or start the service this way simply substituting restart or start where stop is in the command. :D

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.