Difference between revisions of "Operating Systems/Linux/Ubuntu/Ubuntu 16.04 LTS/Services"

From Vista Ridge Cyberpatriot
Jump to navigation Jump to search
m
(More information)
Line 1: Line 1:
 
==What are Services?==
 
==What are Services?==
Services are essentially background programs that are ran in order to make sure the computer functions properly; they are often used to handle stuff like printing and bluetooth. While they are greatly useful they are another attack vector same as anything else, and as such they should be disabled when not required just as you would any other program.  
+
Services are background programs that are ran in order to make sure the computer functions properly. Services also allow for the automation of critical processes, such as network communication, data storage, system maintenance, bluetooth, and printing. Services are usually launched at startup by the "Systemd" process, which is the first process to run on Linux. Services can also be managed and controlled using Systemd, or init scripts. While services are useful, they are another attack vector same as anything else, so they should be disabled when not required just as you would any other program.
  
 
==How to Interact with Services==
 
==How to Interact with Services==
Line 17: Line 17:
 
#Install services with <code>apt-get install <name of service></code>
 
#Install services with <code>apt-get install <name of service></code>
 
#Remove services with <code>apt-get remove <name of service></code> (you may have to confirm it)
 
#Remove services with <code>apt-get remove <name of service></code> (you may have to confirm it)
 +
#See which services are running with <code>systemctl --type=service --state=running</code>
  
 
== Known "bad" Services ==
 
== Known "bad" Services ==
  
 
* pure-ftpd
 
* pure-ftpd

Revision as of 21:59, 29 June 2023

What are Services?

Services are background programs that are ran in order to make sure the computer functions properly. Services also allow for the automation of critical processes, such as network communication, data storage, system maintenance, bluetooth, and printing. Services are usually launched at startup by the "Systemd" process, which is the first process to run on Linux. Services can also be managed and controlled using Systemd, or init scripts. While services are useful, they are another attack vector same as anything else, so they should be disabled when not required just as you would any other program.

How to Interact with Services

See what is running, enabling, and disabling any service.

GUI

  1. You're out of luck, not visual based service manager in 16.04

CLI

  1. Open the terminal, run sudo bash
  2. Run service --status-all to view a full list of installed services
  3. Start a service with service <name of service> start
  4. Stop a service with service <name of service> stop
  5. Install services with apt-get install <name of service>
  6. Remove services with apt-get remove <name of service> (you may have to confirm it)
  7. See which services are running with systemctl --type=service --state=running

Known "bad" Services

  • pure-ftpd