Ubuntu Close Cups Service

Source: Internet
Author: User

I use the ubuntu10.10 every time when the use of NMAP scan 127.0.0.1 can always find a 631 port open, in/etc/services found 631 port is the network printer service, but for me a normal user This is not necessary, So go to the Internet to search, found that the 631 port corresponding program is cups, but dare not uninstall, because some people on the internet said that the service has many packages are dependent on other programs. So uninstalling may be troublesome after manual sudo service cups stop to be able to temporarily play the effect, But the next time it will be turned on, and then thought of adding a command on the boot to stop the service, but did not succeed--, and then one day found that there is an init file/etc, there are many script files, then I saw a cups.conf file, open a look, Finally found a way to solve.
We can use VI to edit the cups.conf file and you will find these code
Start On (filesystem
and (started Dbus or RunLevel [2345])
and stopped Udevtrigger)
Stop on RunLevel [016]
Then my first approach is to check my current runlevel, command RunLevel, found to be 2, then I'll remove the 2 in the boot level and then add the 2 to stop there so that the next time it starts up at the RunLevel 2 o'clock the service will be stopped, and then I think, If you go to another runlevel, you don't have to turn it on again, so pound it off at all RunLevel, the final code is as follows
Start On (filesystem
and (started Dbus or runlevel [])
and stopped Udevtrigger)
Stop on RunLevel [0123456]
This way, when you log on to the system using NMAP scan, you won't see the 631-port.

Ubuntu Close Cups Service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.