QuestionQ45

VerifiedPenetration Testing Essential Concepts

Cedric, a software support executive at Panacx Tech. Inc., was instructed to install the Ubuntu operating system on the computers in the organization. After installing the OS, he discovered that many unnecessary services and packages had been installed automatically without his knowledge. Because these services or packages could be harmful and pose various security threats to the host machine, he was told to disable all unwanted services.

Which of the following commands should Cedric use to stop or disable these unnecessary services or packages on Ubuntu distributions?

Explanation

update-rc.d -f [service name] remove is the Ubuntu/Debian System V init-management command that forcibly removes the named service's startup links. This prevents the service from being started through those configured init runlevels, unlike service [service name] stop, which affects only the current running service state. chkconfig is not the standard Ubuntu/Debian utility for this purpose.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!